diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-05-05 10:18:11 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-05-05 16:36:45 +0200 |
commit | c35bb4226bd809a3da3487a9db3f61ba34cce70d (patch) | |
tree | 40ccb6b51727d700d9276b315e61aa8123fb6d2d /src/shared/cplusplus/Scope.cpp | |
parent | c8f03b46c1e1dddd63450d3db140b3deba6fcb69 (diff) | |
download | qt-creator-c35bb4226bd809a3da3487a9db3f61ba34cce70d.tar.gz |
Introduce Namespace aliases and store the TranslationUnit instead of the Control.
Diffstat (limited to 'src/shared/cplusplus/Scope.cpp')
-rw-r--r-- | src/shared/cplusplus/Scope.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Scope.cpp b/src/shared/cplusplus/Scope.cpp index 792cbb8778..22eddedd41 100644 --- a/src/shared/cplusplus/Scope.cpp +++ b/src/shared/cplusplus/Scope.cpp @@ -179,6 +179,13 @@ bool Scope::isObjCClassScope() const return false; } +bool Scope::isObjCProtocolScope() const +{ + if (_owner) + return _owner->isObjCProtocol(); + return false; +} + bool Scope::isFunctionScope() const { Function *f = 0; |