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

Method findScopeByName

lib/symboldatabase.cpp:6456–6462  ·  view source on GitHub ↗

cppcheck-suppress unusedFunction

Source from the content-addressed store, hash-verified

6454
6455// cppcheck-suppress unusedFunction
6456const Scope *SymbolDatabase::findScopeByName(const std::string& name) const
6457{
6458 auto it = std::find_if(scopeList.cbegin(), scopeList.cend(), [&](const Scope& s) {
6459 return s.className == name;
6460 });
6461 return it == scopeList.end() ? nullptr : &*it;
6462}
6463
6464//---------------------------------------------------------------------------
6465

Calls 1

endMethod · 0.45