Home
last modified time | relevance | path

Searched refs:NativePath (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDependencyFile.cpp292 llvm::SmallString<256> NativePath; in PrintFilename() local
293 llvm::sys::path::native(Filename.str(), NativePath); in PrintFilename()
299 if (NativePath.find_first_of(" #${}^!") != StringRef::npos) in PrintFilename()
300 OS << '\"' << NativePath << '\"'; in PrintFilename()
302 OS << NativePath; in PrintFilename()
306 for (unsigned i = 0, e = NativePath.size(); i != e; ++i) { in PrintFilename()
307 if (NativePath[i] == '#') // Handle '#' the broken gcc way. in PrintFilename()
309 else if (NativePath[i] == ' ') { // Handle space correctly. in PrintFilename()
312 while (j > 0 && NativePath[--j] == '\\') in PrintFilename()
314 } else if (NativePath[i] == '$') // $ is escaped by $$. in PrintFilename()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/
H A DCodeCoverage.cpp530 SmallString<128> NativePath; in remapPathNames() local
531 sys::path::native(Path, NativePath); in remapPathNames()
532 sys::path::remove_dots(NativePath, true); in remapPathNames()
533 if (!NativePath.empty() && !sys::path::is_separator(NativePath.back())) in remapPathNames()
534 NativePath += sys::path::get_separator(); in remapPathNames()
535 return NativePath.c_str(); in remapPathNames()