[gtk-doc: 1/4] Skip G_GNUC_(BEGIN|END)_IGNORE_DEPRECATIONS lines



commit ca42972cd3fc5420a429ae752228c0c89ec7c763
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Thu Jan 2 21:56:10 2020 -0500

    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.

 gtkdoc/scan.py | 5 +++++
 1 file changed, 5 insertions(+)
---
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]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]