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

Function frontIs

lib/programmemory.cpp:287–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287static bool frontIs(const std::vector<MathLib::bigint>& v, bool i)
288{
289 if (v.empty())
290 return false;
291 if (v.front())
292 return i;
293 return !i;
294}
295
296static bool isTrue(const ValueFlow::Value& v)
297{

Callers 1

Calls 2

frontMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected