Skip to content

Commit

Permalink
Update templatesimplifier.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jan 28, 2025
1 parent 18e07f6 commit a21852d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templatesimplifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ static bool areAllParamsTypes(const std::vector<const Token *> &params)

static bool isTemplateInstantion(const Token* tok)
{
if (!tok->isName())
if (!tok->isName() || tok->isKeyword())
return false;
if (Token::Match(tok->tokAt(-1), "%type% %name% ::|<"))
return true;
Expand Down

0 comments on commit a21852d

Please sign in to comment.