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

Method isAlias

lib/vf_analyzers.cpp:988–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986 }
987
988 bool isAlias(const Token* tok, bool& inconclusive) const override {
989 const auto range = SelectValueFromVarIdMapRange(&values);
990
991 for (const auto& p:getVars()) {
992 nonneg int const varid = p.first;
993 const Variable* var = p.second;
994 if (tok->varId() == varid)
995 return true;
996 if (isAliasOf(var, tok, varid, range, &inconclusive))
997 return true;
998 }
999 return false;
1000 }
1001
1002 bool lowerToPossible() override {
1003 for (auto&& p:values) {

Callers

nothing calls this directly

Calls 2

isAliasOfFunction · 0.70

Tested by

no test coverage detected