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

Function changeKnownToPossible

lib/valueflow.cpp:162–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 bailoutInternal("valueFlowBailoutIncompleteVar", (tokenlist), (errorLogger), (tok), (what), "", 0, __func__)
161
162static void changeKnownToPossible(std::list<ValueFlow::Value>& values, int indirect = -1)
163{
164 for (ValueFlow::Value& v : values) {
165 if (indirect >= 0 && v.indirect != indirect)
166 continue;
167 v.changeKnownToPossible();
168 }
169}
170
171static void removeImpossible(std::list<ValueFlow::Value>& values, int indirect = -1)
172{

Callers 2

lowerToPossibleFunction · 0.70
afterConditionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected