diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-01-02 21:56:10 -0500 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2020-01-02 21:56:10 -0500 |
commit | ca42972cd3fc5420a429ae752228c0c89ec7c763 (patch) | |
tree | e289db96625002d18bd7f50adf7ba34c79cc3701 | |
parent | 4878514a24cf60c614da351c30f58bdc2802a4a9 (diff) | |
download | gtk-doc-ca42972cd3fc5420a429ae752228c0c89ec7c763.tar.gz |
Skip G_GNUC_(BEGIN|END)_IGNORE_DEPRECATIONS lines
For some reason, glib has to put empty line before and after each of
these lines otherwise the symbol following it is undeclared.
-rw-r--r-- | gtkdoc/scan.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtkdoc/scan.py b/gtkdoc/scan.py index d04d4d4..7de08ad 100644 --- a/gtkdoc/scan.py +++ b/gtkdoc/scan.py @@ -561,6 +561,11 @@ def ScanHeaderContent(input_lines, decl_list, get_types, options): logging.info('Found start of comment: %s', line.strip()) continue + # Skip begin/end deprecation macros. + m = re.search(r'^\s*G_GNUC_(BEGIN|END)_IGNORE_DEPRECATIONS', line) + if m: + continue + logging.info('no decl: %s', line.strip()) cm = [m.match(line) for m in CLINE_MATCHER] |