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

Method clear

lib/programmemory.cpp:213–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void ProgramMemory::clear()
214{
215 if (mValues->empty())
216 return;
217
218 copyOnWrite();
219
220 mValues->clear();
221}
222
223bool ProgramMemory::empty() const
224{

Callers 15

arrayIndexMethod · 0.45
isScopeNoReturnMethod · 0.45
checkFormatStringMethod · 0.45
deallocateTokensMethod · 0.45
createTokensMethod · 0.45
validateAstMethod · 0.45
setTokenValueFunction · 0.45
clearFunction · 0.45
setValueTypeMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected