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

Function isVarDeclOp

lib/checkother.cpp:2197–2206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2195}
2196
2197static bool isVarDeclOp(const Token* tok)
2198{
2199 if (!tok)
2200 return false;
2201 const Token * vartok = tok->astOperand2();
2202 if (vartok && vartok->variable() && vartok->variable()->nameToken() == vartok)
2203 return true;
2204 const Token * typetok = tok->astOperand1();
2205 return isType(typetok, vartok && vartok->varId() != 0);
2206}
2207
2208static bool isBracketAccess(const Token* tok)
2209{

Callers 1

isConstStatementFunction · 0.85

Calls 5

isTypeFunction · 0.85
astOperand2Method · 0.80
variableMethod · 0.80
astOperand1Method · 0.80
nameTokenMethod · 0.45

Tested by

no test coverage detected