MCPcopy Create free account
hub / github.com/MaskRay/ccls / doPathMapping

Function doPathMapping

src/config.cc:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7Config *g_config;
8
9void 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

Callers 4

project.ccFile · 0.85
deserializeFunction · 0.85
do_initializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected