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

Function ConvertToMakefilePath

Source/cmGlobalXCodeGenerator.cxx:267–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265
266namespace {
267std::string ConvertToMakefilePath(std::string const& path)
268{
269 std::string result;
270 result.reserve(path.size());
271 for (char c : path) {
272 switch (c) {
273 case '\\':
274 case ' ':
275 case '#':
276 result.push_back('\\');
277 CM_FALLTHROUGH;
278 default:
279 result.push_back(c);
280 break;
281 }
282 }
283 return result;
284}
285}
286
287bool cmGlobalXCodeGenerator::FindMakeProgram(cmMakefile* mf)

Callers 3

CreateReRunCMakeFileMethod · 0.85

Calls 3

reserveMethod · 0.80
push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…