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

Method hasChild

lib/tokenize.cpp:2474–2478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2472 }
2473
2474 bool hasChild(const std::string &childName) const {
2475 return std::any_of(children.cbegin(), children.cend(), [&](const ScopeInfo3& child) {
2476 return child.name == childName;
2477 });
2478 }
2479
2480 const ScopeInfo3 * findInChildren(const std::string & scope) const {
2481 for (const auto & child : children) {

Callers 1

scopesMatchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected