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

Method fromInt

lib/infer.cpp:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 static Interval fromInt(MathLib::bigint x, const ValueFlow::Value* ref = nullptr)
117 {
118 Interval result;
119 result.setMinValue(x, ref);
120 result.setMaxValue(x, ref);
121 return result;
122 }
123
124 template<class Predicate>
125 static Interval fromValues(const std::list<ValueFlow::Value>& values, Predicate predicate)

Callers

nothing calls this directly

Calls 2

setMinValueMethod · 0.80
setMaxValueMethod · 0.80

Tested by

no test coverage detected