diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-12-18 16:58:14 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-12-18 17:26:07 +0100 |
commit | 918856cac327ed77a18aef88a2abd2ca5f02c1e8 (patch) | |
tree | f543c4cbea3d71dea3b2d4de0631e1ce48b5d4e8 /src/shared/cplusplus/Scope.cpp | |
parent | 19beb9c84fe070d0f8f79522b9e7d88d71ad0b1e (diff) | |
download | qt-creator-918856cac327ed77a18aef88a2abd2ca5f02c1e8.tar.gz |
Added method to check if a scope is an ObjCClass scope.
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 0fae6db391..86503826d7 100644 --- a/src/shared/cplusplus/Scope.cpp +++ b/src/shared/cplusplus/Scope.cpp @@ -172,6 +172,13 @@ bool Scope::isPrototypeScope() const return false; } +bool Scope::isObjCClassScope() const +{ + if (_owner) + return _owner->isObjCClass(); + return false; +} + bool Scope::isFunctionScope() const { Function *f = 0; |