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

Method reassign

lib/fwdanalysis.cpp:506–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506const Token *FwdAnalysis::reassign(const Token *expr, const Token *startToken, const Token *endToken)
507{
508 if (hasVolatileCastOrVar(expr))
509 return nullptr;
510 mWhat = What::Reassign;
511 Result result = check(expr, startToken, endToken);
512 return result.type == FwdAnalysis::Result::Type::WRITE ? result.token : nullptr;
513}
514
515bool FwdAnalysis::unusedValue(const Token *expr, const Token *startToken, const Token *endToken)
516{

Callers 1

Calls 1

hasVolatileCastOrVarFunction · 0.85

Tested by

no test coverage detected