MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getAllDeclNames

Function getAllDeclNames

test/DeclManager.cpp:191–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191inline std::set<std::string> getAllDeclNames(decl::Type type)
192{
193 // Iterate over all decls and collect the names
194 std::set<std::string> foundNames;
195
196 GlobalDeclarationManager().foreachDeclaration(type, [&](const decl::IDeclaration::Ptr& declaration)
197 {
198 foundNames.insert(declaration->getDeclName());
199 });
200
201 return foundNames;
202}
203
204inline void checkKnownTestDeclNames()
205{

Callers 3

checkKnownTestDeclNamesFunction · 0.85
checkKnownTestDecl2NamesFunction · 0.85
TEST_FFunction · 0.85

Calls 3

getDeclNameMethod · 0.80
foreachDeclarationMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected