[PATCH] D42945: [libc++] Fix misleading indentation.

Bruce Mitchener via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 5 20:50:19 PST 2018


brucem created this revision.
Herald added a reviewer: EricWF.

This was picked up via clang-tidy's readability-misleading-indentation
check.


Repository:
  rCXX libc++

https://reviews.llvm.org/D42945

Files:
  include/__string
  include/algorithm


Index: include/algorithm
===================================================================
--- include/algorithm
+++ include/algorithm
@@ -4705,7 +4705,7 @@
     case 2:
        __destruct_n __d(0);
         unique_ptr<value_type, __destruct_n&> __h2(__first2, __d);
-         if (__comp(*--__last1, *__first1))
+        if (__comp(*--__last1, *__first1))
         {
             ::new(__first2) value_type(_VSTD::move(*__last1));
             __d.__incr((value_type*)0);
Index: include/__string
===================================================================
--- include/__string
+++ include/__string
@@ -374,7 +374,7 @@
     if (__n == 0)
         return NULL;
 #if __has_feature(cxx_constexpr_string_builtins)
-        return __builtin_wmemchr(__s, __a, __n);
+    return __builtin_wmemchr(__s, __a, __n);
 #elif _LIBCPP_STD_VER <= 14
     return wmemchr(__s, __a, __n);
 #else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42945.132933.patch
Type: text/x-patch
Size: 887 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180206/2baf89b6/attachment.bin>


More information about the cfe-commits mailing list