SymbolDatabase: stronger type matching
This commit is contained in:
parent
7c9a69357e
commit
8c8a534117
|
@ -4037,7 +4037,7 @@ const Type* SymbolDatabase::findType(const Token *startTok, const Scope *startSc
|
||||||
startTok = startTok->next();
|
startTok = startTok->next();
|
||||||
|
|
||||||
// type same as scope
|
// type same as scope
|
||||||
if (startTok->str() == startScope->className && startScope->isClassOrStruct())
|
if (startTok->str() == startScope->className && startScope->isClassOrStruct() && startTok->strAt(1) != "::")
|
||||||
return startScope->definedType;
|
return startScope->definedType;
|
||||||
|
|
||||||
// absolute path - directly start in global scope
|
// absolute path - directly start in global scope
|
||||||
|
|
Loading…
Reference in New Issue