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

Method isClassVariable

lib/vf_analyzers.cpp:1343–1350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341 }
1342
1343 bool isClassVariable() const override
1344 {
1345 if (expr->variable()) {
1346 const Variable* var = expr->variable();
1347 return !var->isLocal() && !var->isArgument() && !var->isStatic() && !var->isGlobal();
1348 }
1349 return expr->varId() > 0;
1350 }
1351
1352 Action isAliasModified(const Token* tok, int indirect) const override {
1353 if (value.isSymbolicValue() && tok->exprId() == value.tokvalue->exprId())

Callers

nothing calls this directly

Calls 2

variableMethod · 0.80
isGlobalMethod · 0.45

Tested by

no test coverage detected