diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | build-aux/vcstocl/frontend_c.py | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2020-01-16 Siddhesh Poyarekar <siddhesh@gotplt.org> + vcs-to-changelog: Fix parsing of fndecl without args. + * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression + for empty arguments. + +2020-01-16 Siddhesh Poyarekar <siddhesh@gotplt.org> + vcs-to-changelog: Add documentation. * doc/vcs-to-changelog.texi: New file. * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog diff --git a/build-aux/vcstocl/frontend_c.py b/build-aux/vcstocl/frontend_c.py index 81f37ffa4d..e898926863 100644 --- a/build-aux/vcstocl/frontend_c.py +++ b/build-aux/vcstocl/frontend_c.py @@ -266,7 +266,7 @@ class DeclParser(ExprParser): ExprParser.ATTRIBUTE + ';') # Function Declarations. - FNDECL_RE = re.compile(r'\s*(\w+)\s*\([^\(][^;]*\)\s*' + + FNDECL_RE = re.compile(r'\s*(\w+)\s*\(([^\(][^;]*)?\)\s*' + ExprParser.ATTRIBUTE + ';') def __init__(self, regex, blocktype, project_quirks, debug): |