[libcxx-commits] [libcxx] cf54cb2 - [libc++][NFC] Remove duplicate header includes from <algorithm> and reorder them

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 5 00:08:14 PST 2022


Author: Nikolas Klauser
Date: 2022-01-05T09:06:53+01:00
New Revision: cf54cb2e038300a1c65b9692716e09c5c79b43cc

URL: https://github.com/llvm/llvm-project/commit/cf54cb2e038300a1c65b9692716e09c5c79b43cc
DIFF: https://github.com/llvm/llvm-project/commit/cf54cb2e038300a1c65b9692716e09c5c79b43cc.diff

LOG: [libc++][NFC] Remove duplicate header includes from <algorithm> and reorder them

Remove duplicate header includes from `<algorithm>` and reorder the includes

Reviewed By: Quuxplusone, ldionne, Mordante, #libc, jloser

Spies: jloser, libcxx-commits

Differential Revision: https://reviews.llvm.org/D116507

Added: 
    

Modified: 
    libcxx/include/algorithm

Removed: 
    


################################################################################
diff  --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index b28c8cd498901..83bf8df045089 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -645,15 +645,13 @@ template <class BidirectionalIterator, class Compare>
 
 */
 
+#include <__bits> // __libcpp_clz
 #include <__config>
 #include <__debug>
-#include <__bits> // __libcpp_clz
 #include <cstddef>
 #include <cstring>
 #include <functional>
 #include <initializer_list>
-#include <utility> // needed to provide swap_ranges.
-#include <memory>
 #include <iterator>
 #include <memory>
 #include <type_traits>


        


More information about the libcxx-commits mailing list