[libcxx-commits] [PATCH] D138528: [libc++][NFC] Remove unused include in __threading_support
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 23 06:59:14 PST 2022
ldionne updated this revision to Diff 477495.
ldionne added a comment.
Fixup transitive includes
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138528/new/
https://reviews.llvm.org/D138528
Files:
libcxx/include/__threading_support
libcxx/include/barrier
libcxx/include/semaphore
libcxx/test/libcxx/transitive_includes/cxx2b.csv
Index: libcxx/test/libcxx/transitive_includes/cxx2b.csv
===================================================================
--- libcxx/test/libcxx/transitive_includes/cxx2b.csv
+++ libcxx/test/libcxx/transitive_includes/cxx2b.csv
@@ -42,7 +42,6 @@
barrier cstddef
barrier cstdint
barrier cstring
-barrier ctime
barrier iosfwd
barrier limits
barrier new
@@ -554,7 +553,6 @@
scoped_allocator type_traits
scoped_allocator version
semaphore atomic
-semaphore ctime
semaphore iosfwd
semaphore limits
semaphore ratio
Index: libcxx/include/semaphore
===================================================================
--- libcxx/include/semaphore
+++ libcxx/include/semaphore
@@ -188,4 +188,8 @@
_LIBCPP_POP_MACROS
+#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
+# include <ctime>
+#endif
+
#endif //_LIBCPP_SEMAPHORE
Index: libcxx/include/barrier
===================================================================
--- libcxx/include/barrier
+++ libcxx/include/barrier
@@ -330,6 +330,7 @@
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# include <concepts>
+# include <ctime>
# include <iterator>
# include <memory>
# include <stdexcept>
Index: libcxx/include/__threading_support
===================================================================
--- libcxx/include/__threading_support
+++ libcxx/include/__threading_support
@@ -16,7 +16,6 @@
#include <__compare/ordering.h>
#include <__config>
#include <__fwd/hash.h>
-#include <__thread/poll_with_backoff.h>
#include <errno.h>
#include <iosfwd>
#include <limits>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138528.477495.patch
Type: text/x-patch
Size: 1602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221123/5da93c83/attachment.bin>
More information about the libcxx-commits
mailing list