[libcxx-commits] [PATCH] D133796: [libc++][chrono] Removes format include.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 13 11:28:29 PDT 2022
Mordante created this revision.
Herald added a project: All.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
Switch to the new granular format_functions header. Since the chrono's
format dependency in C++20 hasn't been in a release it's save to remove
it.
Depends on D133665 <https://reviews.llvm.org/D133665>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133796
Files:
libcxx/include/__chrono/ostream.h
libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono
libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono
Index: libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono
===================================================================
--- libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono
+++ libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono
@@ -18,7 +18,6 @@
cwchar
cwctype
exception
-format
initializer_list
ios
iosfwd
Index: libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono
===================================================================
--- libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono
+++ libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono
@@ -20,7 +20,6 @@
cwchar
cwctype
exception
-format
functional
initializer_list
ios
Index: libcxx/include/__chrono/ostream.h
===================================================================
--- libcxx/include/__chrono/ostream.h
+++ libcxx/include/__chrono/ostream.h
@@ -13,7 +13,7 @@
#include <__chrono/day.h>
#include <__chrono/statically_widen.h>
#include <__config>
-#include <format>
+#include <__format/format_functions.h>
#include <ostream>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133796.459823.patch
Type: text/x-patch
Size: 1129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220913/adcdb716/attachment.bin>
More information about the libcxx-commits
mailing list