[clang] [llvm] [clang] Simplify usage of FileManager::makeAbsolutePath (PR #182360)
Jan Svoboda via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 14:47:23 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:
This will now skip the dot removal for absolute paths on Windows that don't need separator canonicalization. I think we need to include a check for dots present in the path, or remove this optimization all together to have consistent behavior.
https://github.com/llvm/llvm-project/pull/182360
More information about the llvm-commits
mailing list