[clang] [llvm] [clang] Simplify usage of FileManager::makeAbsolutePath (PR #182360)

Cyndy Ishida via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 19 15:00:55 PST 2026


================
@@ -207,12 +207,13 @@ LLVM_ABI bool replace_path_prefix(SmallVectorImpl<char> &Path,
 LLVM_ABI StringRef remove_leading_dotslash(StringRef path LLVM_LIFETIME_BOUND,
                                            Style style = Style::native);
 
-/// In-place remove any './' and optionally '../' components from a path.
+/// In-place remove any './' and optionally '../' components, and
+/// canonicalize slashes when possible, from a path.
----------------
cyndyishida wrote:

I put the object at the end because both sides of the ", and" apply to "a path". The suggested sentence leaves that potentially ambiguous.

https://github.com/llvm/llvm-project/pull/182360


More information about the cfe-commits mailing list