mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-24 08:35:08 +00:00
clang.pathMappings: use >
instead of :
as the separator
This commit is contained in:
parent
4276c2b383
commit
f3cfdb2781
@ -20,7 +20,7 @@ Config *g_config;
|
|||||||
|
|
||||||
void DoPathMapping(std::string &arg) {
|
void DoPathMapping(std::string &arg) {
|
||||||
for (const std::string &mapping : g_config->clang.pathMappings) {
|
for (const std::string &mapping : g_config->clang.pathMappings) {
|
||||||
auto colon = mapping.find(':');
|
auto colon = mapping.find('>');
|
||||||
if (colon != std::string::npos) {
|
if (colon != std::string::npos) {
|
||||||
auto p = arg.find(mapping.substr(0, colon));
|
auto p = arg.find(mapping.substr(0, colon));
|
||||||
if (p != std::string::npos)
|
if (p != std::string::npos)
|
||||||
|
Loading…
Reference in New Issue
Block a user