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

Function findEndOfFunctionCallForParameter

lib/valueflow.cpp:3209–3219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3207}
3208
3209static Token* findEndOfFunctionCallForParameter(Token* parameterToken)
3210{
3211 if (!parameterToken)
3212 return nullptr;
3213 Token* parent = parameterToken->astParent();
3214 while (parent && !parent->isOp() && !Token::Match(parent, "[({]"))
3215 parent = parent->astParent();
3216 if (!parent)
3217 return nullptr;
3218 return nextAfterAstRightmostLeaf(parent);
3219}
3220
3221static bool isTryEmplace(const Token* tok)
3222{

Callers 1

valueFlowAfterMoveFunction · 0.85

Calls 3

astParentMethod · 0.80
isOpMethod · 0.80

Tested by

no test coverage detected