Escape parameters named `enum`.

Prefix parameters named `enum` with an underscore like all the other
reserved keywords.
pull/616/head
Raul Santos 2021-09-22 16:07:23 +02:00
parent 466f2cdebf
commit 54c2d23572
1 changed files with 1 additions and 0 deletions

View File

@ -881,6 +881,7 @@ def is_primitive(name):
def escape_cpp(name): def escape_cpp(name):
escapes = { escapes = {
"class": "_class", "class": "_class",
"enum": "_enum",
"char": "_char", "char": "_char",
"short": "_short", "short": "_short",
"bool": "_bool", "bool": "_bool",