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

Function isFunctionCall

lib/forwardanalyzer.cpp:882–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880 }
881
882 static bool isFunctionCall(const Token* tok)
883 {
884 if (!Token::simpleMatch(tok, "("))
885 return false;
886 if (tok->isCast())
887 return false;
888 if (!tok->isBinaryOp())
889 return false;
890 if (Token::simpleMatch(tok->link(), ") {"))
891 return false;
892 if (isUnevaluated(tok->previous()))
893 return false;
894 return Token::Match(tok->previous(), "%name%|)|]|>");
895 }
896
897 static Token* assignExpr(Token* tok) {
898 while (tok->astParent() && astIsLHS(tok)) {

Callers 2

traverseRecursiveFunction · 0.70
callExprFunction · 0.70

Calls 4

isUnevaluatedFunction · 0.85
isCastMethod · 0.80
isBinaryOpMethod · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected