diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2014-06-27 13:18:33 +0100 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2014-07-09 15:36:00 +0200 |
commit | 776edf4d952107cf5b1aa3de5f557eda2e3a45b6 (patch) | |
tree | 7501583099c216fe0220477ab695f331ed3684f3 /gtkdoc-scan.in | |
parent | f5daece2d1c9f2dfd4514e7c1ead111df6de140a (diff) | |
download | gtk-doc-776edf4d952107cf5b1aa3de5f557eda2e3a45b6.tar.gz |
scan: Ignore enumeration fields with DEPRECATED in their name
GParamFlags should not be declared deprecated just because it has a
value called G_PARAM_DEPRECATED.
https://bugzilla.gnome.org/show_bug.cgi?id=730658
Diffstat (limited to 'gtkdoc-scan.in')
-rwxr-xr-x | gtkdoc-scan.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in index 0387afb..cc1a284 100755 --- a/gtkdoc-scan.in +++ b/gtkdoc-scan.in @@ -383,7 +383,8 @@ sub ScanHeader { # attribute based deprecation and also treat this as a deprecation # guard, unless it's a macro definition. if ($deprecated_conditional_nest == 0 and m/_DEPRECATED/) { - unless (m/^\s*#\s*(if*|define)/) { + unless (m/^\s*#\s*(if*|define)/ or $in_declaration eq "enum") { + @TRACE@("Found deprecation annotation (decl: '$in_declaration'): $_"); $deprecated_conditional_nest += 0.1; } } |