| 316 | } |
| 317 | |
| 318 | void Variables::write(nonneg int varid, const Token* tok) |
| 319 | { |
| 320 | VariableUsage *usage = find(varid); |
| 321 | |
| 322 | if (usage) { |
| 323 | usage->_write = true; |
| 324 | if (!usage->_var->isStatic() && !Token::simpleMatch(tok->next(), "= 0 ;")) |
| 325 | usage->_read = false; |
| 326 | usage->_lastAccess = tok; |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | void Variables::writeAliases(nonneg int varid, const Token* tok) |
| 331 | { |
no test coverage detected