summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Scope.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-12-29 18:19:35 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-01-06 17:39:35 +0100
commit5723682b218b1de51a966df269c3ccefd9dfcb22 (patch)
treed52bf27aebe8a9a2f2ed7e61d739cb9cb41cc707 /src/shared/cplusplus/Scope.cpp
parent7c0f4e8f506fbf706a642e91143881f22d7ed55a (diff)
downloadqt-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.cpp8
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) {