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

Function isTrueOrFalse

lib/programmemory.cpp:314–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314static bool isTrueOrFalse(const ValueFlow::Value& v, bool b)
315{
316 if (b)
317 return isTrue(v);
318 return isFalse(v);
319}
320
321// If the scope is a non-range for loop
322static bool isBasicForLoop(const Token* tok)

Callers 3

pruneConditionsFunction · 0.85
executeAllMethod · 0.85
executeMultiConditionMethod · 0.85

Calls 2

isTrueFunction · 0.85
isFalseFunction · 0.85

Tested by

no test coverage detected