summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/LookupContext.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-06-28 23:21:02 +0300
committerOrgad Shaneh <orgads@gmail.com>2015-06-29 09:08:46 +0000
commit1faf2bd1ef5f3928e0db3e92e240d8c9378c77fa (patch)
treeac2bddd8b7420ff8e1adc9828d52443162d7416a /src/libs/cplusplus/LookupContext.cpp
parent28e163de974d5bb2cec11cd98fa223def2170433 (diff)
downloadqt-creator-1faf2bd1ef5f3928e0db3e92e240d8c9378c77fa.tar.gz
C++: Fix resolving of using in enclosing scope
Use-case: namespace Ns { namespace Nested { struct Foo { void func(); int bar; }; } } using namespace Ns::Nested; namespace Ns { void Foo::func() { bar; // bar not highlighted } } Change-Id: I6e667d63eb40511d65532c4d6d317aa4028a87a4 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/libs/cplusplus/LookupContext.cpp')
-rw-r--r--src/libs/cplusplus/LookupContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/LookupContext.cpp b/src/libs/cplusplus/LookupContext.cpp
index 38093f8b47..2314d44997 100644
--- a/src/libs/cplusplus/LookupContext.cpp
+++ b/src/libs/cplusplus/LookupContext.cpp
@@ -1021,7 +1021,7 @@ LookupScope *LookupScope::lookupType(const Name *name, Block *block)
LookupScope *LookupScope::findType(const Name *name)
{
ProcessedSet processed;
- return d->lookupType_helper(name, &processed, /*searchInEnclosingScope =*/ false, d);
+ return d->lookupType_helper(name, &processed, /*searchInEnclosingScope =*/ true, d);
}
LookupScope *Internal::LookupScopePrivate::findBlock_helper(