From e7ecc9fe18bb03998ff5a1a77c516f496658e73a Mon Sep 17 00:00:00 2001 From: Kevin Traini Date: Fri, 9 May 2025 19:04:52 +0200 Subject: [PATCH] feat(cpp-target): Add `exception` to reserved words Closes #3876 Signed-off-by: Kevin Traini --- tool/src/org/antlr/v4/codegen/target/CppTarget.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/src/org/antlr/v4/codegen/target/CppTarget.java b/tool/src/org/antlr/v4/codegen/target/CppTarget.java index 526e2b621a..1161504e61 100644 --- a/tool/src/org/antlr/v4/codegen/target/CppTarget.java +++ b/tool/src/org/antlr/v4/codegen/target/CppTarget.java @@ -37,8 +37,8 @@ public class CppTarget extends Target { "bitor", "bool", "break", "case", "catch", "char", "char16_t", "char32_t", "class", "compl", "concept", "const", "constexpr", "const_cast", "continue", "decltype", "default", "delete", "do", - "double", "dynamic_cast", "else", "enum", "explicit", "export", - "extern", "false", "float", "for", "friend", "goto", "if", + "double", "dynamic_cast", "else", "enum", "exception", "explicit", + "export", "extern", "false", "float", "for", "friend", "goto", "if", "inline", "int", "long", "mutable", "namespace", "new", "noexcept", "not", "not_eq", "nullptr", "NULL", "operator", "or", "or_eq", "private", "protected", "public", "register",