[libcxx-commits] [PATCH] D116175: [libc++][format][NFC] Remove some unneeded headers.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Dec 22 09:47:19 PST 2021


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

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116175

Files:
  libcxx/include/__format/format_context.h
  libcxx/include/__format/formatter_string.h


Index: libcxx/include/__format/formatter_string.h
===================================================================
--- libcxx/include/__format/formatter_string.h
+++ libcxx/include/__format/formatter_string.h
@@ -16,7 +16,6 @@
 #include <__format/format_string.h>
 #include <__format/formatter.h>
 #include <__format/parser_std_format_spec.h>
-#include <algorithm>
 #include <string_view>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Index: libcxx/include/__format/format_context.h
===================================================================
--- libcxx/include/__format/format_context.h
+++ libcxx/include/__format/format_context.h
@@ -14,10 +14,9 @@
 #include <__config>
 #include <__format/format_args.h>
 #include <__format/format_fwd.h>
+#include <__iterator/back_insert_iterator.h>
 #include <__iterator/concepts.h>
 #include <concepts>
-#include <iterator>
-#include <string>
 
 #ifndef _LIBCPP_HAS_NO_LOCALIZATION
 #include <locale>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116175.395894.patch
Type: text/x-patch
Size: 959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211222/c4b959ae/attachment.bin>


More information about the libcxx-commits mailing list