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

Function callExpr

lib/forwardanalyzer.cpp:906–918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904 }
905
906 static Token* callExpr(Token* tok)
907 {
908 while (tok->astParent() && astIsLHS(tok)) {
909 if (!Token::Match(tok, "%name%|::|<|."))
910 break;
911 if (Token::simpleMatch(tok, "<") && !tok->link())
912 break;
913 tok = tok->astParent();
914 }
915 if (isFunctionCall(tok))
916 return tok;
917 return nullptr;
918 }
919
920 static Token* skipTo(Token* tok, const Token* dest, const Token* end = nullptr) {
921 if (end && dest->index() > end->index())

Callers 1

updateRangeFunction · 0.85

Calls 4

astIsLHSFunction · 0.85
astParentMethod · 0.80
simpleMatchFunction · 0.70
isFunctionCallFunction · 0.70

Tested by

no test coverage detected