summaryrefslogtreecommitdiff
path: root/gtkdoc-scan.in
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-10-09 16:17:30 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-10-09 16:24:54 -0400
commit00efc5dd162d29272787707e76900f3fa0436356 (patch)
tree146cdabc65dc2f8fa48a7ed4e16298ff29aaf994 /gtkdoc-scan.in
parentb41641bd75f870afff7561ceed8a08456da57565 (diff)
downloadgtk-doc-00efc5dd162d29272787707e76900f3fa0436356.tar.gz
Ignore more decorators on functions
gtk-doc was explicitly ignoring only G_GNUC_*, which is good enough for G_GNUC_MALLOC, G_GNUC_PRINTF etc. But for deprecation annotations, we want to be able to change these on a per-module basis, so we need to be able to wrap G_GNUC_DEPRECATED in, say, a GTK_DEPRECATED macro. And it would be good if gtk-doc would not stumble over it. https://bugzilla.gnome.org/show_bug.cgi?id=624001
Diffstat (limited to 'gtkdoc-scan.in')
-rwxr-xr-xgtkdoc-scan.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
index 0de762b..04bfb4a 100755
--- a/gtkdoc-scan.in
+++ b/gtkdoc-scan.in
@@ -724,7 +724,7 @@ sub ScanHeader {
# Note that sometimes functions end in ') G_GNUC_PRINTF (2, 3);' or
# ') __attribute__ (...);'.
if ($in_declaration eq 'function') {
- if ($decl =~ s/\)\s*(G_GNUC_.*|${IGNORE_DECORATORS}\s*|__attribute__\s*\(.*\)\s*)?;.*$//) {
+ if ($decl =~ s/\)\s*(G_GNUC_.*|.*DEPRECATED.*|${IGNORE_DECORATORS}\s*|__attribute__\s*\(.*\)\s*)?;.*$//) {
if ($internal == 0) {
$decl =~ s%/\*.*?\*/%%gs; # remove comments.
#$decl =~ s/^\s+//; # remove leading whitespace.