diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-12-29 18:19:35 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-01-06 17:39:35 +0100 |
commit | 5723682b218b1de51a966df269c3ccefd9dfcb22 (patch) | |
tree | d52bf27aebe8a9a2f2ed7e61d739cb9cb41cc707 /src/shared/cplusplus/Scope.cpp | |
parent | 7c0f4e8f506fbf706a642e91143881f22d7ed55a (diff) | |
download | qt-creator-5723682b218b1de51a966df269c3ccefd9dfcb22.tar.gz |
Fixes for highlighting locals in Objective-C methods.
Diffstat (limited to 'src/shared/cplusplus/Scope.cpp')
-rw-r--r-- | src/shared/cplusplus/Scope.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Scope.cpp b/src/shared/cplusplus/Scope.cpp index 86503826d7..9743e98e44 100644 --- a/src/shared/cplusplus/Scope.cpp +++ b/src/shared/cplusplus/Scope.cpp @@ -187,6 +187,14 @@ bool Scope::isFunctionScope() const return false; } +bool Scope::isObjCMethodScope() const +{ + ObjCMethod *m = 0; + if (_owner && 0 != (m = _owner->asObjCMethod())) + return m->arguments() != this; + return false; +} + void Scope::enterSymbol(Symbol *symbol) { if (++_symbolCount == _allocatedSymbols) { |