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

Method GetAllProjects

Source/cmVSSolution.cxx:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 "2150E333-8FDC-42A3-9474-1A3956D46DE8"_s;
57
58std::vector<Solution::Project const*> Solution::GetAllProjects() const
59{
60 std::vector<Project const*> projects;
61 projects.reserve(this->ProjectMap.size());
62 for (Project const* project : this->Projects) {
63 projects.emplace_back(project);
64 }
65 for (Folder const* folder : this->Folders) {
66 for (Project const* project : folder->Projects) {
67 projects.emplace_back(project);
68 }
69 }
70 return projects;
71}
72
73namespace {
74template <typename T>

Callers 1

WriteSlnFunction · 0.80

Calls 3

reserveMethod · 0.80
emplace_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected