[gtk-doc] scan: Ignore enumeration fields with DEPRECATED in their name
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] scan: Ignore enumeration fields with DEPRECATED in their name
- Date: Wed, 9 Jul 2014 13:42:34 +0000 (UTC)
commit 776edf4d952107cf5b1aa3de5f557eda2e3a45b6
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Jun 27 13:18:33 2014 +0100
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
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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]