Skip to content

Commit

Permalink
Update astutils.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored May 23, 2024
1 parent ee4cd64 commit 77de5bd
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 @@ -2297,7 +2297,7 @@ static T* getTokenArgumentFunctionImpl(T* tok, int& argn)
parent = parent->astParent();

// passing variable to subfunction?
if (Token::Match(parent, "[*[(,{.]") || Token::Match(parent, "%oror%|&&"))
if (Token::Match(parent, "[[(,{.]") || Token::Match(parent, "%oror%|&&") || (parent && parent->isUnaryOp("*")))
;
else if (Token::simpleMatch(parent, ":")) {
while (Token::Match(parent, "[?:]"))
Expand Down

0 comments on commit 77de5bd

Please sign in to comment.