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

Function sameValueType

lib/token.cpp:2212–2220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2210}
2211
2212static bool sameValueType(const ValueFlow::Value& x, const ValueFlow::Value& y)
2213{
2214 if (x.valueType != y.valueType)
2215 return false;
2216 // Symbolic are the same type if they share the same tokvalue
2217 if (x.isSymbolicValue())
2218 return x.tokvalue->exprId() == 0 || x.tokvalue->exprId() == y.tokvalue->exprId();
2219 return true;
2220}
2221
2222bool Token::addValue(const ValueFlow::Value &value)
2223{

Callers 1

addValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected