[libcxx-commits] [PATCH] D91179: [23/N] [libcxx] Have lexically_normal return the path with preferred separators

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 19 11:11:11 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG513463fd266f: [libcxx] Have lexically_normal return the path with preferred separators (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91179/new/

https://reviews.llvm.org/D91179

Files:
  libcxx/src/filesystem/operations.cpp


Index: libcxx/src/filesystem/operations.cpp
===================================================================
--- libcxx/src/filesystem/operations.cpp
+++ libcxx/src/filesystem/operations.cpp
@@ -1717,6 +1717,7 @@
   if (NeedTrailingSep)
     Result /= PS("");
 
+  Result.make_preferred();
   return Result;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91179.325046.patch
Type: text/x-patch
Size: 316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210219/7e0251db/attachment-0001.bin>


More information about the libcxx-commits mailing list