From f2a263512c835128aca397437d912d4c9ec4eb3f Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Tue, 13 Sep 2022 20:10:26 +0200 Subject: [PATCH] [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 --- libcxx/include/__chrono/ostream.h | 2 +- libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono | 1 - libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libcxx/include/__chrono/ostream.h b/libcxx/include/__chrono/ostream.h index f45e949..7d67964 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 +#include <__format/format_functions.h> #include #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 72678cf..afda2d6 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 f9c6b62..4d81964 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 -- 2.7.4