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

Method isConditional

lib/vf_analyzers.cpp:1019–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017 }
1018
1019 bool isConditional() const override {
1020 for (auto&& p:values) {
1021 if (p.second.conditional)
1022 return true;
1023 if (p.second.condition)
1024 return !p.second.isImpossible();
1025 }
1026 return false;
1027 }
1028
1029 bool stopOnCondition(const Token* condTok) const override {
1030 if (isConditional())

Callers 3

stopOnConditionFunction · 0.45
updateLoopFunction · 0.45
updateRangeFunction · 0.45

Calls 1

isImpossibleMethod · 0.80

Tested by

no test coverage detected