Skip to content

Commit

Permalink
Adjust indirect
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 7, 2023
1 parent 686b01d commit 02adcaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/astutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2346,6 +2346,10 @@ bool isVariableChangedByFunctionCall(const Token *tok, int indirect, const Setti
const bool addressOf = tok->astParent() && tok->astParent()->isUnaryOp("&");
if (addressOf)
indirect++;

const bool deref = tok->astParent() && tok->astParent()->isUnaryOp("*");
if (deref)
indirect--;

int argnr;
tok = getTokenArgumentFunction(tok, argnr);
Expand Down

0 comments on commit 02adcaa

Please sign in to comment.