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

Function isInLoopCondition

lib/astutils.cpp:1018–1022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1016}
1017
1018const Token* isInLoopCondition(const Token* tok)
1019{
1020 const Token* top = tok->astTop();
1021 return Token::Match(top->previous(), "for|while (") ? top : nullptr;
1022}
1023
1024bool isDesignatedInitializer(const Token* tok)
1025{

Callers 2

followVariableExpressionFunction · 0.85

Calls 1

astTopMethod · 0.80

Tested by

no test coverage detected