Skip to content

Commit

Permalink
indirect
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jan 10, 2024
1 parent e0a1eba commit e13f2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/astutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,7 @@ bool isVariableChangedByFunctionCall(const Token *tok, int indirect, const Setti
if (deref && indirect > 0)
indirect--;

if (tok->isCpp() && tok->tokAt(-1) && Token::simpleMatch(tok->tokAt(-2), "new (")) // placement new TODO: fix AST
if (indirect == 1 && tok->isCpp() && tok->tokAt(-1) && Token::simpleMatch(tok->tokAt(-2), "new (")) // placement new TODO: fix AST
return true;

int argnr;
Expand Down

0 comments on commit e13f2fc

Please sign in to comment.