[clang] [llvm] [clang] Simplify usage of FileManager::makeAbsolutePath (PR #182360)
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 19 15:53:24 PST 2026
================
@@ -664,6 +664,17 @@ void ModuleDepCollectorPP::EndOfMainFile() {
MDC.Consumer.handlePrebuiltModuleDependency(I.second);
}
+static StringRef makeAbsoluteAndCanonicalize(CompilerInstance &CI,
+ StringRef Path,
+ SmallVectorImpl<char> &Storage) {
+ if (llvm::sys::path::is_absolute(Path) &&
+ !llvm::sys::path::is_style_windows(llvm::sys::path::Style::native))
+ return Path;
----------------
jansvoboda11 wrote:
I have a PR that hits this: https://github.com/llvm/llvm-project/pull/182063#discussion_r2829451858 I wanted to remove dots from an absolute path on Unix to avoid changing a test.
https://github.com/llvm/llvm-project/pull/182360
More information about the cfe-commits
mailing list