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

Function getVarIds

lib/valueflow.cpp:3552–3561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3550}
3551
3552static std::set<nonneg int> getVarIds(const Token* tok)
3553{
3554 std::set<nonneg int> result;
3555 visitAstNodes(tok, [&](const Token* child) {
3556 if (child->varId() > 0)
3557 result.insert(child->varId());
3558 return ChildrenToVisit::op1_and_op2;
3559 });
3560 return result;
3561}
3562
3563static void valueFlowSymbolic(const TokenList& tokenlist, const SymbolDatabase& symboldatabase, ErrorLogger& errorLogger, const Settings& settings)
3564{

Callers 1

valueFlowSymbolicFunction · 0.85

Calls 1

visitAstNodesFunction · 0.85

Tested by

no test coverage detected