From e7e2b73170947aefd5f64cfcbc2245acdf948dac Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 16 Dec 2020 20:39:58 +0000 Subject: [PATCH] Search extracted namespace for class, not all headers --- docs/verify-docstrings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/verify-docstrings.py b/docs/verify-docstrings.py index 3d71a5b2c..632b4a2b6 100644 --- a/docs/verify-docstrings.py +++ b/docs/verify-docstrings.py @@ -270,7 +270,7 @@ for mod_name in ['renderdoc', 'qrenderdoc']: namespace = namespace.group(0) if source is None and namespace is not None: - source = re.search('(struct|class|union) I?' + objname + '[^{]*\{.*?^}', headers, re.MULTILINE | re.DOTALL) + source = re.search('(struct|class|union) I?' + objname + '[^{]*\{.*?^}', namespace, re.MULTILINE | re.DOTALL) source = source.group(0)