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

Method assumeCondition

lib/vfvalue.cpp:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 void Value::assumeCondition(const Token *tok) {
42 condition = tok;
43 errorPath.emplace_back(tok, "Assuming that condition '" + tok->expressionString() + "' is not redundant");
44 }
45
46 std::string Value::toString() const {
47 std::stringstream ss;

Callers 2

setConditionalValueFunction · 0.80
parseMethod · 0.80

Calls 1

expressionStringMethod · 0.45

Tested by

no test coverage detected