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

Function WriteSlnFolder

Source/cmVSSolution.cxx:185–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void WriteSlnFolder(std::ostream& sln, Solution::Folder const& folder)
186{
187 std::string folderName = folder.Name;
188 std::replace(folderName.begin(), folderName.end(), '/', '\\');
189 std::string const fileName = cmSystemTools::GetFilenameName(folder.Name);
190 sln << "Project(\"{" << Solution::Folder::TypeId << "}\") = \"" << fileName
191 << "\", \"" << folderName << "\", \"{" << folder.Id << "}\"\n";
192 if (!folder.Files.empty()) {
193 sln << "\tProjectSection(SolutionItems) = preProject\n";
194 for (std::string const& item : folder.Files) {
195 sln << "\t\t" << item << " = " << item << "\n";
196 }
197 sln << "\tEndProjectSection\n";
198 }
199 sln << "EndProject\n";
200}
201
202void WriteSlnSolutionConfigurationPlatforms(std::ostream& sln,
203 Solution const& solution)

Callers 1

WriteSlnFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…