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

Method Value

lib/vfvalue.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28namespace ValueFlow {
29 Value::Value(const Token *c, MathLib::bigint val, Bound b)
30 : bound(b),
31 safe(false),
32 conditional(false),
33 macro(false),
34 defaultArg(false),
35 intvalue(val),
36 varvalue(val),
37 condition(c) {
38 errorPath.emplace_back(c, "Assuming that condition '" + c->expressionString() + "' is not redundant");
39 }
40
41 void Value::assumeCondition(const Token *tok) {
42 condition = tok;

Callers 1

parseFromArgsMethod · 0.45

Calls 1

expressionStringMethod · 0.45

Tested by

no test coverage detected