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

Function isBreakOrContinueScope

lib/valueflow.cpp:3368–3373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3366}
3367
3368static bool isBreakOrContinueScope(const Token* endToken)
3369{
3370 if (!Token::simpleMatch(endToken, "}"))
3371 return false;
3372 return Token::Match(endToken->tokAt(-2), "break|continue ;");
3373}
3374
3375static const Scope* getLoopScope(const Token* tok)
3376{

Callers 2

afterConditionMethod · 0.85

Calls 2

simpleMatchFunction · 0.70
tokAtMethod · 0.45

Tested by

no test coverage detected