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

Method findNamespace

lib/symboldatabase.cpp:6762–6772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6760//---------------------------------------------------------------------------
6761
6762const Scope * SymbolDatabase::findNamespace(const Token * tok, const Scope * scope) const
6763{
6764 const Scope * s = findScope(tok, scope);
6765
6766 if (s)
6767 return s;
6768 if (scope->nestedIn)
6769 return findNamespace(tok, scope->nestedIn);
6770
6771 return nullptr;
6772}
6773
6774//---------------------------------------------------------------------------
6775

Callers

nothing calls this directly

Calls 1

findScopeFunction · 0.85

Tested by

no test coverage detected