https://gcc.gnu.org/g:b71a73272c5508236e0b766ba80221e0aea121af
commit r17-4975-gb71a73272c5508236e0b766ba80221e0aea121af Author: Arthur Cohen <[email protected]> Date: Wed Oct 7 13:39:30 2026 +0200 mklog: Recognize `enum class` as a type starter This avoids `enum class Foo` showing up as `enum class` in the generated Changelog and instead properly recognizes the start of the type. contrib/ChangeLog: * mklog.py: Add "enum class" as a type starter to the struct regex. Diff: --- contrib/mklog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/mklog.py b/contrib/mklog.py index 557ab42e7ff1..fa0b12738637 100755 --- a/contrib/mklog.py +++ b/contrib/mklog.py @@ -77,7 +77,7 @@ dg_regex = re.compile(r'{\s+dg-(error|warning)') pr_filename_regex = re.compile(r'(^|[\W_])[Pp][Rr](?P<pr>\d{4,})') identifier_regex = re.compile(r'^([a-zA-Z0-9_#].*)') comment_regex = re.compile(r'^\/\*') -struct_regex = re.compile(r'^(class|struct|union|enum)\s+' +struct_regex = re.compile(r'^(class|struct|union|enum class|enum)\s+' r'(GTY\(.*\)\s+)?([a-zA-Z0-9_]+)') macro_regex = re.compile(r'#\s*(define|undef)\s+([a-zA-Z0-9_]+)') super_macro_regex = re.compile(r'^DEF[A-Z0-9_]+\s*\(([a-zA-Z0-9_]+)')
