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

Function addVars

lib/programmemory.cpp:530–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530static void addVars(ProgramMemory& pm, const ProgramMemory::Map& vars)
531{
532 for (const auto& p:vars) {
533 const ValueFlow::Value &value = p.second;
534 pm.setValue(p.first.tok, value);
535 }
536}
537
538void ProgramMemoryState::addState(const Token* tok, const ProgramMemory::Map& vars)
539{

Callers 1

addStateMethod · 0.85

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected