[gcc r17-3833] gcc-changelog: accept "CWG nnnn" header
Jason Merrill
jason@gcc.gnu.org
Tue Sep 1 18:56:52 GMT 2026
https://gcc.gnu.org/g:fc54ab94ad257f9ef43a7287a60c21734a7a288f
commit r17-3833-gfc54ab94ad257f9ef43a7287a60c21734a7a288f
Author: Jason Merrill <jason@redhat.com>
Date: Wed Aug 26 08:39:16 2026 -0700
gcc-changelog: accept "CWG nnnn" header
We currently accept "DR" tags as well as "PR" to indicate a C++ defect
report, but the core language and library have different DR numbering and
often we can implement an issue resolution before it becomes a formal DR.
So let's also accept "CWG" and "LWG" tags. And "P2037R7" for paper numbers.
contrib/ChangeLog:
* gcc-changelog/git_commit.py (dr_regex): Add CWG|LWG and [DP]NNNN.
Diff:
---
contrib/gcc-changelog/git_commit.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index 6329e7eb07a7..70732c8478ea 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -180,7 +180,8 @@ changelog_regex = re.compile(r'^(?:[fF]or +)?([a-z0-9+-/]*)ChangeLog:?')
subject_pr_regex = re.compile(r'(^|\W)PR\s+(?P<component>[a-zA-Z0-9+-]+)/(?P<pr>\d{4,7})')
subject_pr2_regex = re.compile(r'[(\[]PR\s*(?P<pr>\d{4,7})[)\]]')
pr_regex = re.compile(r'\tPR (?P<component>[a-z0-9+-]+\/)?(?P<pr>[0-9]+)$')
-dr_regex = re.compile(r'\tDR ([0-9]+)$')
+# A C++ issue resolution (e.g. CWG 2337) or paper (e.g. P2038R7)
+dr_regex = re.compile(r'\t((DR|CWG|LWG) ([0-9]+)|([DP][0-9]+(R[0-9]+)?))$')
star_prefix_regex = re.compile(r'\t\*(?P<spaces>\ *)(?P<content>.*)')
end_of_location_regex = re.compile(r'[\[<(:]')
item_empty_regex = re.compile(r'\t(\* \S+ )?\(\S+\):\s*$')
More information about the Gcc-cvs
mailing list