forked from qt-creator/qt-creator
Added the newly created Enum symbol to its enclosing class or namespace scope.
This commit is contained in:
@@ -2407,6 +2407,7 @@ bool Bind::visit(EnumSpecifierAST *ast)
|
|||||||
const Name *enumName = this->name(ast->name);
|
const Name *enumName = this->name(ast->name);
|
||||||
Enum *e = control()->newEnum(sourceLocation, enumName);
|
Enum *e = control()->newEnum(sourceLocation, enumName);
|
||||||
ast->symbol = e;
|
ast->symbol = e;
|
||||||
|
_scope->addMember(e);
|
||||||
|
|
||||||
Scope *previousScope = switchScope(e);
|
Scope *previousScope = switchScope(e);
|
||||||
for (EnumeratorListAST *it = ast->enumerator_list; it; it = it->next) {
|
for (EnumeratorListAST *it = ast->enumerator_list; it; it = it->next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user