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

Function debugString

lib/vf_common.cpp:363–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361 }
362
363 std::string debugString(const Value& v)
364 {
365 std::string kind;
366 switch (v.valueKind) {
367
368 case Value::ValueKind::Impossible:
369 case Value::ValueKind::Known:
370 kind = "always";
371 break;
372 case Value::ValueKind::Inconclusive:
373 kind = "inconclusive";
374 break;
375 case Value::ValueKind::Possible:
376 kind = "possible";
377 break;
378 }
379 return kind + " " + v.toString();
380 }
381
382 void setSourceLocation(Value& v,
383 SourceLocation ctx,

Callers 2

valueFlowDebugFunction · 0.85
setSourceLocationFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected