canonicalize a path by removing ./ and ../ components.
| 30 | |
| 31 | /// canonicalize a path by removing ./ and ../ components. |
| 32 | static std::string cleanPath(StringRef Path) |
| 33 | { |
| 34 | SmallString<256> Result = Path; |
| 35 | llvm::sys::path::remove_dots(Result, true); |
| 36 | return std::string(Result.str()); |
| 37 | } |
| 38 | |
| 39 | namespace { |
| 40 | // This class is a workaround for the fact that PPCallbacks doesn't give us the |
no test coverage detected
searching dependent graphs…