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

Function removePointValue

lib/token.cpp:2028–2036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2026}
2027
2028static bool removePointValue(std::list<ValueFlow::Value>& values, std::list<ValueFlow::Value>::iterator& x)
2029{
2030 const bool isPoint = x->bound == ValueFlow::Value::Bound::Point;
2031 if (!isPoint)
2032 x->decreaseRange();
2033 else
2034 x = values.erase(x);
2035 return isPoint;
2036}
2037
2038static bool removeContradiction(std::list<ValueFlow::Value>& values)
2039{

Callers 1

removeContradictionFunction · 0.85

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected