[libcxx-commits] [libcxx] f2a2635 - [libc++][chrono] Removes format include.
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 20 09:58:23 PDT 2022
Author: Mark de Wever
Date: 2022-09-20T18:58:13+02:00
New Revision: f2a263512c835128aca397437d912d4c9ec4eb3f
URL: https://github.com/llvm/llvm-project/commit/f2a263512c835128aca397437d912d4c9ec4eb3f
DIFF: https://github.com/llvm/llvm-project/commit/f2a263512c835128aca397437d912d4c9ec4eb3f.diff
LOG: [libc++][chrono] Removes format include.
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
Reviewed By: #libc, ldionne
Differential Revision: https://reviews.llvm.org/D133796
Added:
Modified:
libcxx/include/__chrono/ostream.h
libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono
libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono
Removed:
################################################################################
diff --git a/libcxx/include/__chrono/ostream.h b/libcxx/include/__chrono/ostream.h
index f45e949b67ba6..7d6796452fdd4 100644
--- a/libcxx/include/__chrono/ostream.h
+++ b/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)
diff --git a/libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono b/libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono
index 72678cfc80a10..afda2d6d3a2ac 100644
--- a/libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono
+++ b/libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono
@@ -20,7 +20,6 @@ ctime
cwchar
cwctype
exception
-format
functional
initializer_list
ios
diff --git a/libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono b/libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono
index f9c6b629f8035..4d8196453e81c 100644
--- a/libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono
+++ b/libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono
@@ -18,7 +18,6 @@ ctime
cwchar
cwctype
exception
-format
initializer_list
ios
iosfwd
More information about the libcxx-commits
mailing list