[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
       
    Tue Nov 10 08:48:32 PST 2020
    
    
  
mstorsjo created this revision.
mstorsjo added a reviewer: libc++.
Herald added a project: libc++.
Herald added 1 blocking reviewer(s): libc++.
mstorsjo requested review of this revision.
Repository:
  rG LLVM Github Monorepo
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
@@ -1954,6 +1954,7 @@
   if (NeedTrailingSep)
     Result /= PS("");
 
+  Result.make_preferred();
   return Result;
 }
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91179.304215.patch
Type: text/x-patch
Size: 316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201110/df11a0b0/attachment.bin>
    
    
More information about the libcxx-commits
mailing list