forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Orgad Shaneh
parent
28e163de97
commit
1faf2bd1ef
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user