MCPcopy Create free account
hub / github.com/Kitware/CMake / GetEntry

Function GetEntry

Source/cmVSSolution.cxx:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73namespace {
74template <typename T>
75T* GetEntry(std::map<cm::string_view, std::unique_ptr<T>>& entryMap,
76 cm::string_view name)
77{
78 auto i = entryMap.find(name);
79 if (i == entryMap.end()) {
80 auto p = cm::make_unique<T>();
81 p->Name = std::string{ name };
82 i = entryMap.emplace(p->Name, std::move(p)).first;
83 }
84 return i->second.get();
85}
86}
87
88Solution::Folder* Solution::GetFolder(cm::string_view name)

Callers 3

GetFolderMethod · 0.85
GetProjectMethod · 0.85
GetPropertyGroupMethod · 0.85

Calls 5

moveFunction · 0.85
emplaceMethod · 0.80
findMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…