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

Function removeModifiedVars

lib/programmemory.cpp:497–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497static void removeModifiedVars(ProgramMemory& pm, const Token* tok, const Token* origin, const Settings& settings)
498{
499 pm.erase_if([&](const ExprIdToken& e) {
500 return isVariableChanged(origin, tok, e.getExpressionId(), false, settings);
501 });
502}
503
504static ProgramMemory getInitialProgramState(const Token* tok,
505 const Token* origin,

Callers 1

getInitialProgramStateFunction · 0.85

Calls 3

isVariableChangedFunction · 0.85
erase_ifMethod · 0.80
getExpressionIdMethod · 0.80

Tested by

no test coverage detected