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

Function isConditionTrue

lib/forwardanalyzer.cpp:122–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 bool isConditionTrue(const Token* tok, const Token* ctx = nullptr) const {
123 return evalCond(tok, ctx).first;
124 }
125
126 template<class T, class F, REQUIRES("T must be a Token class", std::is_convertible<T*, const Token*> )>
127 Progress traverseTok(T* tok, const F &f, bool traverseUnknown, T** out = nullptr) {

Callers

nothing calls this directly

Calls 1

evalCondFunction · 0.85

Tested by

no test coverage detected