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

Method read

lib/checkunusedvar.cpp:285–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void Variables::read(nonneg int varid, const Token* tok)
286{
287 VariableUsage *usage = find(varid);
288
289 if (usage) {
290 usage->_read = true;
291 if (tok)
292 usage->_lastAccess = tok;
293 }
294}
295
296void Variables::readAliases(nonneg int varid, const Token* tok)
297{

Callers 3

doAssignmentFunction · 0.45
deserializeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected