]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
vcs-to-changelog: Add quirk for __nonnull
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 16 Jan 2020 14:49:07 +0000 (20:19 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 17 Jan 2020 03:56:20 +0000 (09:26 +0530)
The parser cannot identify the __nonnull off the bat and confuses
__typeof in the change db25266c9 to be a function declaration.

scripts/vcs_to_changelog/vcstocl_quirks.py

index 2417e962b92dc748d059459b9773e29d6a7e9ecb..0e611ffd7d0150b23b863762e233aeeddfc26118 100644 (file)
@@ -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))'}]