| 786 | } |
| 787 | |
| 788 | static 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 | |
| 808 | int cmCTestCoverageHandler::HandleBlanketJSCoverage( |
| 809 | cmCTestCoverageHandlerContainer* cont) |