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

Function joinCommandLine

Source/CTest/cmCTestCoverageHandler.cxx:788–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786}
787
788static std::string joinCommandLine(std::vector<std::string> const& args)
789{
790 std::string ret;
791
792 for (std::string const& s : args) {
793 if (s.find(' ') == std::string::npos) {
794 ret = cmStrCat(std::move(ret), s, ' ');
795 } else {
796 ret = cmStrCat(std::move(ret), '"', s, "\" ");
797 }
798 }
799
800 // drop trailing whitespace
801 if (!ret.empty()) {
802 ret.pop_back();
803 }
804
805 return ret;
806}
807
808int cmCTestCoverageHandler::HandleBlanketJSCoverage(
809 cmCTestCoverageHandlerContainer* cont)

Callers 2

HandleGCovCoverageMethod · 0.85
HandleLCovCoverageMethod · 0.85

Calls 5

moveFunction · 0.85
pop_backMethod · 0.80
cmStrCatFunction · 0.50
findMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…