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

Function isBreakScope

lib/valueflow.cpp:4303–4310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4301}
4302
4303static bool isBreakScope(const Token* const endToken)
4304{
4305 if (!Token::simpleMatch(endToken, "}"))
4306 return false;
4307 if (!Token::simpleMatch(endToken->link(), "{"))
4308 return false;
4309 return Token::findmatch(endToken->link(), "break|goto", endToken);
4310}
4311
4312ValueFlow::Value ValueFlow::asImpossible(ValueFlow::Value v)
4313{

Callers 1

afterConditionMethod · 0.85

Calls 1

simpleMatchFunction · 0.70

Tested by

no test coverage detected