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

Method GetCommand

Source/cmCustomCommandGenerator.cxx:350–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350std::string cmCustomCommandGenerator::GetCommand(unsigned int c) const
351{
352 std::vector<std::string> emulator = this->GetCrossCompilingEmulator(c);
353 if (!emulator.empty()) {
354 return emulator[0];
355 }
356 if (char const* location = this->GetArgv0Location(c)) {
357 return std::string(location);
358 }
359
360 return this->CommandLines[c][0];
361}
362
363static std::string escapeForShellOldStyle(std::string const& str)
364{

Callers

nothing calls this directly

Calls 3

GetArgv0LocationMethod · 0.95
emptyMethod · 0.45

Tested by

no test coverage detected