Skip to content

Commit 8c8a534

Browse files
zingsheimdanmar
authored andcommitted
SymbolDatabase: stronger type matching
1 parent 7c9a693 commit 8c8a534

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/symboldatabase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4037,7 +4037,7 @@ const Type* SymbolDatabase::findType(const Token *startTok, const Scope *startSc
40374037
startTok = startTok->next();
40384038

40394039
// type same as scope
4040-
if (startTok->str() == startScope->className && startScope->isClassOrStruct())
4040+
if (startTok->str() == startScope->className && startScope->isClassOrStruct() && startTok->strAt(1) != "::")
40414041
return startScope->definedType;
40424042

40434043
// absolute path - directly start in global scope

0 commit comments

Comments
 (0)