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

Function astHasExpr

lib/astutils.cpp:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167bool astHasExpr(const Token* tok, nonneg int exprid)
168{
169 if (!tok)
170 return false;
171 if (tok->exprId() == exprid)
172 return true;
173 return astHasExpr(tok->astOperand1(), exprid) || astHasExpr(tok->astOperand2(), exprid);
174}
175
176static bool astIsCharWithSign(const Token *tok, ValueType::Sign sign)
177{

Callers 1

executeMultiConditionMethod · 0.85

Calls 2

astOperand1Method · 0.80
astOperand2Method · 0.80

Tested by

no test coverage detected