Skip to content

Commit 25f0654

Browse files
committed
Fix #14450
1 parent c53c87e commit 25f0654

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
@@ -6430,7 +6430,7 @@ const Function* SymbolDatabase::findFunction(const Token* const tok) const
64306430
}
64316431
}
64326432
// Check for constructor
6433-
if (Token::Match(tok, "%name% (|{")) {
6433+
if (!Token::simpleMatch(tok->tokAt(-2), "this .") && Token::Match(tok, "%name% (|{")) {
64346434
ValueType vt = ValueType::parseDecl(tok, mSettings);
64356435
if (vt.typeScope)
64366436
return vt.typeScope->findFunction(tok, false);

0 commit comments

Comments
 (0)