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

Function removeImpossible

lib/valueflow.cpp:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static void removeImpossible(std::list<ValueFlow::Value>& values, int indirect = -1)
172{
173 values.remove_if([&](const ValueFlow::Value& v) {
174 if (indirect >= 0 && v.indirect != indirect)
175 return false;
176 return v.isImpossible();
177 });
178}
179
180static void lowerToPossible(std::list<ValueFlow::Value>& values, int indirect = -1)
181{

Callers 8

lowerToPossibleFunction · 0.85
valueOfTok_Method · 0.85
testKnownValueOfTok_Method · 0.85
valueFlowCalculationsMethod · 0.85
valueFlowFwdAnalysisMethod · 0.85

Calls 1

isImpossibleMethod · 0.80

Tested by 6

valueOfTok_Method · 0.68
testKnownValueOfTok_Method · 0.68
valueFlowCalculationsMethod · 0.68
valueFlowFwdAnalysisMethod · 0.68