From dd45157e3d479fd71d7fdbf737a2d3d7d6e7bf6c Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 1 Feb 2020 12:53:34 +0100 Subject: [PATCH] autodoxy: don't complain if the provided prototype is missing 'const' --- docs/source/_ext/autodoxy.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/source/_ext/autodoxy.py b/docs/source/_ext/autodoxy.py index f562a232ec..a64800d207 100644 --- a/docs/source/_ext/autodoxy.py +++ b/docs/source/_ext/autodoxy.py @@ -402,8 +402,12 @@ class DoxygenMethodDocumenter(DoxygenDocumenter): if self.argsstring != None: candidates = get_doxygen_root().xpath(xpath_query_noparam) if len(candidates) == 1: - 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)) + 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." + .format(obj, meth, candidates[0].find('argsstring').text, obj, meth, self.argsstring)) self.object = candidates[0] return True logger.warning("[autodoxy] WARNING: Could not find method {}{}{}".format(obj, meth, self.argsstring)) -- 2.20.1