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

Function hasUnknownVars

lib/astutils.cpp:1163–1174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1161}
1162
1163static bool hasUnknownVars(const Token* startTok)
1164{
1165 bool result = false;
1166 visitAstNodes(startTok, [&](const Token* tok) {
1167 if (tok->varId() > 0 && !tok->variable()) {
1168 result = true;
1169 return ChildrenToVisit::done;
1170 }
1171 return ChildrenToVisit::op1_and_op2;
1172 });
1173 return result;
1174}
1175
1176bool isStructuredBindingVariable(const Variable* var)
1177{

Callers 1

followVariableExpressionFunction · 0.85

Calls 2

visitAstNodesFunction · 0.85
variableMethod · 0.80

Tested by

no test coverage detected