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

Method getValue

lib/vf_analyzers.cpp:959–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957 }
958
959 const ValueFlow::Value* getValue(const Token* tok) const override {
960 if (tok->varId() == 0)
961 return nullptr;
962 auto it = values.find(tok->varId());
963 if (it == values.end())
964 return nullptr;
965 return &it->second;
966 }
967 ValueFlow::Value* getValue(const Token* tok) override {
968 if (tok->varId() == 0)
969 return nullptr;

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected