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

Function setValueBound

lib/valueflow.cpp:220–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static void setValueBound(ValueFlow::Value& value, const Token* tok, bool invert)
221{
222 if (Token::Match(tok, "<|<=")) {
223 setValueUpperBound(value, !invert);
224 } else if (Token::Match(tok, ">|>=")) {
225 setValueUpperBound(value, invert);
226 }
227}
228
229static void setConditionalValue(ValueFlow::Value& value, const Token* tok, MathLib::bigint i)
230{

Callers 1

setConditionalValuesFunction · 0.85

Calls 1

setValueUpperBoundFunction · 0.85

Tested by

no test coverage detected