From 344eb668e7f5738a68591870bd2a3e00a135854f Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 1 Feb 2020 22:47:48 +0100 Subject: [PATCH] autodoxy: Don't ignore const-ness discrepencies in prototype It is fragile and makes the code less readable. Fixing the doc actually works (I was conserned that the extra space could break something), so there is no point. --- docs/source/_ext/autodoxy.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/source/_ext/autodoxy.py b/docs/source/_ext/autodoxy.py index a64800d207..af672a227d 100644 --- a/docs/source/_ext/autodoxy.py +++ b/docs/source/_ext/autodoxy.py @@ -402,11 +402,7 @@ class DoxygenMethodDocumenter(DoxygenDocumenter): if self.argsstring != None: candidates = get_doxygen_root().xpath(xpath_query_noparam) if len(candidates) == 1: - if "{}{}{}".format(obj, meth, candidates[0].find('argsstring').text) == "{}{}{} const".format(obj, meth, self.argsstring): - # ignore discrepencies due to the missing 'const' method quantifyier - pass - else: - logger.warning("[autodoxy] Using method '{}{}{}' instead of '{}{}{}'. You may want to drop your specification of the signature, or to fix it." + logger.warning("[autodoxy] Using method '{}{}{}' instead of '{}{}{}'. You may want to drop your specification of the signature, or to fix it." .format(obj, meth, candidates[0].find('argsstring').text, obj, meth, self.argsstring)) self.object = candidates[0] return True @@ -525,7 +521,7 @@ class DoxygenVariableDocumenter(DoxygenDocumenter): else: rtype = rtype_el.text - # print("rtype: {}".format(rtype)) +# print("rtype: {}".format(rtype)) signame = (rtype and (rtype + ' ') or '') + self.klassname + "::" + self.objname return self.format_template_name() + signame -- 2.20.1