Skip to content

Commit

Permalink
Update checkunusedfunctions.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jul 4, 2024
1 parent fb700f4 commit 0ccc846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/checkunusedfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer, const Setting
while (Token::Match(funcname, "%name% :: %name%"))
funcname = funcname->tokAt(2);

if (!Token::Match(funcname, "%name% [(),;]:}>]") || funcname->varId())
if (!Token::Match(funcname, "%name% [(),;]:}>]"))
continue;
}

if (!funcname || funcname->isKeyword() || funcname->isStandardType())
if (!funcname || funcname->isKeyword() || funcname->isStandardType() || funcname->varId())
continue;

// funcname ( => Assert that the end parentheses isn't followed by {
Expand Down

0 comments on commit 0ccc846

Please sign in to comment.