MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / hasFunctionCall

Function hasFunctionCall

lib/fwdanalysis.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static bool hasFunctionCall(const Token *tok)
60{
61 if (!tok)
62 return false;
63 if (Token::Match(tok, "%name% ("))
64 // todo, const/pure function?
65 return true;
66 return hasFunctionCall(tok->astOperand1()) || hasFunctionCall(tok->astOperand2());
67}
68
69static bool hasGccCompoundStatement(const Token *tok)
70{

Callers 1

checkRecursiveMethod · 0.85

Calls 2

astOperand1Method · 0.80
astOperand2Method · 0.80

Tested by

no test coverage detected