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

Function compareValue

lib/vfvalue.h:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143 template<class Compare>
144 bool compareValue(const Value& rhs, Compare compare) const {
145 assert((!this->isSymbolicValue() && !rhs.isSymbolicValue()) ||
146 (this->valueType == rhs.valueType && sameToken(this->tokvalue, rhs.tokvalue)));
147 bool result = false;
148 visitValue(
149 *this,
150 std::bind(compareVisitor{}, std::ref(result), std::ref(rhs), std::move(compare), std::placeholders::_1));
151 return result;
152 }
153
154 bool operator==(const Value &rhs) const {
155 if (!equalValue(rhs))

Callers

nothing calls this directly

Calls 1

visitValueFunction · 0.85

Tested by

no test coverage detected