diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 11:59:51 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 12:00:46 +0200 |
commit | 16adcf3114f6a4b8956b8a31fb5dad7c8f0edd77 (patch) | |
tree | 2e8f8895a316d480b271f7df8d4c281fe664265c /src/shared/cplusplus | |
parent | a592df029af2f5a735e1b722b5b5172b69e82a57 (diff) | |
download | qt-creator-16adcf3114f6a4b8956b8a31fb5dad7c8f0edd77.tar.gz |
Added the newly created Enum symbol to its enclosing class or namespace scope.
Diffstat (limited to 'src/shared/cplusplus')
-rw-r--r-- | src/shared/cplusplus/Bind.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp index bca93e3dc0..4062c266cb 100644 --- a/src/shared/cplusplus/Bind.cpp +++ b/src/shared/cplusplus/Bind.cpp @@ -2407,6 +2407,7 @@ bool Bind::visit(EnumSpecifierAST *ast) const Name *enumName = this->name(ast->name); Enum *e = control()->newEnum(sourceLocation, enumName); ast->symbol = e; + _scope->addMember(e); Scope *previousScope = switchScope(e); for (EnumeratorListAST *it = ast->enumerator_list; it; it = it->next) { |