Join two path components
| 57 | |
| 58 | // Join two path components |
| 59 | inline std::string join_path(const std::string& a, const std::string& b) { |
| 60 | if (a.empty()) { |
| 61 | return b; |
| 62 | } |
| 63 | if (a.back() == '/' || a.back() == '\\') { |
| 64 | return a + b; |
| 65 | } |
| 66 | return a + "/" + b; |
| 67 | } |
| 68 | |
| 69 | // Normalize generated code for comparison by removing comments and extra whitespace |
| 70 | inline std::string normalize_for_compare(std::string s) { |
no test coverage detected