Skip to content

Commit 6378441

Browse files
Update forwardanalyzer.cpp
1 parent 21de4fa commit 6378441

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/forwardanalyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ namespace {
845845
return Break();
846846
} else if (Token* callTok = callExpr(tok)) {
847847
// TODO: Dont traverse tokens a second time
848-
if (start != callTok && tok != callTok && updateRecursive(callTok->astOperand1()) == Progress::Break)
848+
if (start != callTok && tok != callTok && (tok->str() != "." || tok != callTok->astOperand1()) && updateRecursive(callTok->astOperand1()) == Progress::Break)
849849
return Break();
850850
// Since the call could be an unknown macro, traverse the tokens as a range instead of recursively
851851
if (!Token::simpleMatch(callTok, "( )") &&

0 commit comments

Comments
 (0)