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

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jan 2 16:26:43 PST 2022


philnik created this revision.
philnik added reviewers: Quuxplusone, ldionne, Mordante.
philnik requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116507

Files:
  libcxx/include/algorithm


Index: libcxx/include/algorithm
===================================================================
--- libcxx/include/algorithm
+++ libcxx/include/algorithm
@@ -645,15 +645,13 @@
 
 */
 
+#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>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116507.396963.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220103/549b0b0f/attachment.bin>


More information about the libcxx-commits mailing list