| 7 | Config *g_config; |
| 8 | |
| 9 | void doPathMapping(std::string &arg) { |
| 10 | for (const std::string &mapping : g_config->clang.pathMappings) { |
| 11 | auto sep = mapping.find('>'); |
| 12 | if (sep != std::string::npos) { |
| 13 | auto p = arg.find(mapping.substr(0, sep)); |
| 14 | if (p != std::string::npos) |
| 15 | arg.replace(p, sep, mapping.substr(sep + 1)); |
| 16 | } |
| 17 | } |
| 18 | } |
| 19 | } // namespace ccls |
no outgoing calls
no test coverage detected