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

Function astHasVar

lib/astutils.cpp:158–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158bool astHasVar(const Token * tok, nonneg int varid)
159{
160 if (!tok)
161 return false;
162 if (tok->varId() == varid)
163 return true;
164 return astHasVar(tok->astOperand1(), varid) || astHasVar(tok->astOperand2(), varid);
165}
166
167bool astHasExpr(const Token* tok, nonneg int exprid)
168{

Callers 1

isAliasOfFunction · 0.85

Calls 2

astOperand1Method · 0.80
astOperand2Method · 0.80

Tested by

no test coverage detected