We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c53c87e commit 25f0654Copy full SHA for 25f0654
1 file changed
lib/symboldatabase.cpp
@@ -6430,7 +6430,7 @@ const Function* SymbolDatabase::findFunction(const Token* const tok) const
6430
}
6431
6432
// Check for constructor
6433
- if (Token::Match(tok, "%name% (|{")) {
+ if (!Token::simpleMatch(tok->tokAt(-2), "this .") && Token::Match(tok, "%name% (|{")) {
6434
ValueType vt = ValueType::parseDecl(tok, mSettings);
6435
if (vt.typeScope)
6436
return vt.typeScope->findFunction(tok, false);
0 commit comments