clang.pathMappings: use > instead of : as the separator

This commit is contained in:
Fangrui Song 2019-03-23 07:12:25 -07:00
parent 4276c2b383
commit f3cfdb2781

View File

@ -20,7 +20,7 @@ Config *g_config;
void DoPathMapping(std::string &arg) {
for (const std::string &mapping : g_config->clang.pathMappings) {
auto colon = mapping.find(':');
auto colon = mapping.find('>');
if (colon != std::string::npos) {
auto p = arg.find(mapping.substr(0, colon));
if (p != std::string::npos)