Disable old-names generation for enums in class in namespace
This commit is contained in:
parent
c99417ab13
commit
e48dee81ea
1 changed files with 6 additions and 0 deletions
|
|
@ -1166,9 +1166,15 @@ public:
|
||||||
virtual int enumDeclaration(Node *n) {
|
virtual int enumDeclaration(Node *n) {
|
||||||
current[STATIC_CONST] = true;
|
current[STATIC_CONST] = true;
|
||||||
current[ENUM_CONST] = true;
|
current[ENUM_CONST] = true;
|
||||||
|
// Drop v2_compatibility if NSpace is given
|
||||||
|
int old_v2_compatibility = v2_compatibility;
|
||||||
|
if (getNSpace()) {
|
||||||
|
v2_compatibility = 0;
|
||||||
|
}
|
||||||
int result = Language::enumDeclaration(n);
|
int result = Language::enumDeclaration(n);
|
||||||
current[STATIC_CONST] = false;
|
current[STATIC_CONST] = false;
|
||||||
current[ENUM_CONST] = false;
|
current[ENUM_CONST] = false;
|
||||||
|
v2_compatibility = old_v2_compatibility;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue