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

Function getStepTokFromEnd

lib/forwardanalyzer.cpp:929–936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

927 }
928
929 static Token* getStepTokFromEnd(Token* tok) {
930 if (!Token::simpleMatch(tok, "}"))
931 return nullptr;
932 Token* end = tok->link()->previous();
933 if (!Token::simpleMatch(end, ")"))
934 return nullptr;
935 return getStepTok(end->link());
936 }
937 };
938}
939

Callers 1

updateRangeFunction · 0.85

Calls 2

getStepTokFunction · 0.85
simpleMatchFunction · 0.70

Tested by

no test coverage detected