diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-12 12:00:40 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-12 12:01:01 +0200 |
commit | 99c33277198948bab7f9664c939f748bfefd2181 (patch) | |
tree | 55b21072246ca059dd73ae7cf7fed40ad792c2c3 /src/shared/cplusplus/Scope.cpp | |
parent | eacb27f1fb114046c5cf7881eca2bf841ab8b334 (diff) | |
download | qt-creator-99c33277198948bab7f9664c939f748bfefd2181.tar.gz |
Improved support for private classes.
Diffstat (limited to 'src/shared/cplusplus/Scope.cpp')
-rw-r--r-- | src/shared/cplusplus/Scope.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Scope.cpp b/src/shared/cplusplus/Scope.cpp index 6c910c072c..fcb5a68027 100644 --- a/src/shared/cplusplus/Scope.cpp +++ b/src/shared/cplusplus/Scope.cpp @@ -208,6 +208,21 @@ void Scope::enterSymbol(Symbol *symbol) } } +Symbol *Scope::lookat(Name *name) const +{ + if (! name) + return 0; + + else if (OperatorNameId *opId = name->asOperatorNameId()) + return lookat(opId->kind()); + + else if (Identifier *id = name->identifier()) + return lookat(id); + + else + return 0; +} + Symbol *Scope::lookat(Identifier *id) const { if (! _hash || ! id) |