aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2020-01-16 20:19:07 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2020-01-17 09:26:20 +0530
commita9ed2b274796777442b1f66a661f957daf39bb66 (patch)
tree039323040fab8fc4db56ff04f6cee69968dcf05e /scripts
parenta332bd1518af518c984fad73eba6f46dc5b2b2d4 (diff)
downloadglibc-a9ed2b274796777442b1f66a661f957daf39bb66.zip
glibc-a9ed2b274796777442b1f66a661f957daf39bb66.tar.gz
glibc-a9ed2b274796777442b1f66a661f957daf39bb66.tar.bz2
vcs-to-changelog: Add quirk for __nonnull
The parser cannot identify the __nonnull off the bat and confuses __typeof in the change db25266c9 to be a function declaration.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vcs_to_changelog/vcstocl_quirks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/vcs_to_changelog/vcstocl_quirks.py b/scripts/vcs_to_changelog/vcstocl_quirks.py
index 2417e96..0e611ff 100644
--- a/scripts/vcs_to_changelog/vcstocl_quirks.py
+++ b/scripts/vcs_to_changelog/vcstocl_quirks.py
@@ -39,6 +39,8 @@ class GlibcProjectQuirks(ProjectQuirks):
'sub': r'__attribute__ ((\1))'},
{'orig': r'__THROW', 'sub': r'__attribute__ ((__nothrow__ __LEAF))'},
{'orig': r'__THROWNL', 'sub': r'__attribute__ ((__nothrow__))'},
+ {'orig': r'__nonnull \(\(([^)]+)\)\)',
+ 'sub': r'__attribute__ ((__nonnull__ \1))'},
{'orig': r'([^_])attribute_(\w+)', 'sub': r'\1__attribute__ ((\2))'},
{'orig': r'^attribute_(\w+)', 'sub': r'__attribute__ ((\1))'}]