Skip to content

Commit e7ecc9f

Browse files
committed
feat(cpp-target): Add exception to reserved words
Closes #3876 Signed-off-by: Kevin Traini <[email protected]>
1 parent 5b450d8 commit e7ecc9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool/src/org/antlr/v4/codegen/target/CppTarget.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public class CppTarget extends Target {
3737
"bitor", "bool", "break", "case", "catch", "char", "char16_t",
3838
"char32_t", "class", "compl", "concept", "const", "constexpr",
3939
"const_cast", "continue", "decltype", "default", "delete", "do",
40-
"double", "dynamic_cast", "else", "enum", "explicit", "export",
41-
"extern", "false", "float", "for", "friend", "goto", "if",
40+
"double", "dynamic_cast", "else", "enum", "exception", "explicit",
41+
"export", "extern", "false", "float", "for", "friend", "goto", "if",
4242
"inline", "int", "long", "mutable", "namespace", "new",
4343
"noexcept", "not", "not_eq", "nullptr", "NULL", "operator", "or",
4444
"or_eq", "private", "protected", "public", "register",

0 commit comments

Comments
 (0)