[libcxx-commits] [PATCH] D148405: [libc++] Remove the chrono include from algorithm
Ian Anderson via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Apr 19 13:36:17 PDT 2023
iana updated this revision to Diff 515073.
iana added a comment.
Fix another test failure.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148405/new/
https://reviews.llvm.org/D148405
Files:
libcxx/docs/ReleaseNotes.rst
libcxx/include/algorithm
libcxx/test/libcxx/transitive_includes/cxx03.csv
libcxx/test/libcxx/transitive_includes/cxx11.csv
libcxx/test/libcxx/transitive_includes/cxx14.csv
libcxx/test/libcxx/transitive_includes/cxx17.csv
Index: libcxx/test/libcxx/transitive_includes/cxx17.csv
===================================================================
--- libcxx/test/libcxx/transitive_includes/cxx17.csv
+++ libcxx/test/libcxx/transitive_includes/cxx17.csv
@@ -1,6 +1,5 @@
algorithm atomic
algorithm bit
-algorithm chrono
algorithm climits
algorithm concepts
algorithm cstddef
Index: libcxx/test/libcxx/transitive_includes/cxx14.csv
===================================================================
--- libcxx/test/libcxx/transitive_includes/cxx14.csv
+++ libcxx/test/libcxx/transitive_includes/cxx14.csv
@@ -1,6 +1,5 @@
algorithm atomic
algorithm bit
-algorithm chrono
algorithm climits
algorithm concepts
algorithm cstddef
Index: libcxx/test/libcxx/transitive_includes/cxx11.csv
===================================================================
--- libcxx/test/libcxx/transitive_includes/cxx11.csv
+++ libcxx/test/libcxx/transitive_includes/cxx11.csv
@@ -1,6 +1,5 @@
algorithm atomic
algorithm bit
-algorithm chrono
algorithm climits
algorithm concepts
algorithm cstddef
@@ -845,6 +844,7 @@
thread compare
thread cstddef
thread cstdint
+thread cstdlib
thread cstring
thread ctime
thread functional
Index: libcxx/test/libcxx/transitive_includes/cxx03.csv
===================================================================
--- libcxx/test/libcxx/transitive_includes/cxx03.csv
+++ libcxx/test/libcxx/transitive_includes/cxx03.csv
@@ -1,6 +1,5 @@
algorithm atomic
algorithm bit
-algorithm chrono
algorithm climits
algorithm concepts
algorithm cstddef
@@ -844,6 +843,7 @@
thread compare
thread cstddef
thread cstdint
+thread cstdlib
thread cstring
thread ctime
thread functional
Index: libcxx/include/algorithm
===================================================================
--- libcxx/include/algorithm
+++ libcxx/include/algorithm
@@ -1921,10 +1921,6 @@
# include <__pstl_algorithm>
#endif
-#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 17
-# include <chrono>
-#endif
-
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# include <atomic>
# include <bit>
Index: libcxx/docs/ReleaseNotes.rst
===================================================================
--- libcxx/docs/ReleaseNotes.rst
+++ libcxx/docs/ReleaseNotes.rst
@@ -66,6 +66,8 @@
- C++2b: ``atomic``, ``bit``, ``cstdint``, ``cstdlib``, ``cstring``, ``initializer_list``, ``limits``, ``new``,
``stdexcept``, ``system_error``, ``type_traits``, ``typeinfo``
+- ``<algorithm>`` no longer includes ``<chrono>`` in any C++ version (it was prevously included in C++17 and earlier).
+
- The headers ``<experimental/algorithm>`` and ``<experimental/functional>`` have been removed, since all the contents
have been implemented in namespace ``std`` for at least two releases.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148405.515073.patch
Type: text/x-patch
Size: 2825 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230419/f84e25f2/attachment.bin>
More information about the libcxx-commits
mailing list