[libcxx-commits] [PATCH] D138599: [libc++][NFC] Add missing includes

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 23 12:29:36 PST 2022


ldionne created this revision.
Herald added a project: All.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Those were found during an upcoming granularization of <mutex>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138599

Files:
  libcxx/include/__locale
  libcxx/include/condition_variable
  libcxx/include/future
  libcxx/include/shared_mutex
  libcxx/include/thread


Index: libcxx/include/thread
===================================================================
--- libcxx/include/thread
+++ libcxx/include/thread
@@ -84,6 +84,9 @@
 */
 
 #include <__assert> // all public C++ headers provide the assertion handler
+#include <__chrono/duration.h>
+#include <__chrono/steady_clock.h>
+#include <__chrono/time_point.h>
 #include <__config>
 #include <__functional/hash.h>
 #include <__memory/unique_ptr.h>
Index: libcxx/include/shared_mutex
===================================================================
--- libcxx/include/shared_mutex
+++ libcxx/include/shared_mutex
@@ -124,7 +124,12 @@
 
 #include <__assert> // all public C++ headers provide the assertion handler
 #include <__availability>
+#include <__chrono/duration.h>
+#include <__chrono/steady_clock.h>
+#include <__chrono/time_point.h>
 #include <__config>
+#include <__memory/addressof.h>
+#include <cerrno>
 #include <version>
 
 _LIBCPP_PUSH_MACROS
Index: libcxx/include/future
===================================================================
--- libcxx/include/future
+++ libcxx/include/future
@@ -368,6 +368,7 @@
 #include <__config>
 #include <__memory/allocator_arg_t.h>
 #include <__memory/allocator_destructor.h>
+#include <__memory/shared_ptr.h> // __shared_count
 #include <__memory/uses_allocator.h>
 #include <__utility/auto_cast.h>
 #include <__utility/forward.h>
Index: libcxx/include/condition_variable
===================================================================
--- libcxx/include/condition_variable
+++ libcxx/include/condition_variable
@@ -107,10 +107,14 @@
 */
 
 #include <__assert> // all public C++ headers provide the assertion handler
+#include <__chrono/duration.h>
+#include <__chrono/steady_clock.h>
+#include <__chrono/time_point.h>
 #include <__config>
 #include <__memory/shared_ptr.h>
 #include <__memory/unique_ptr.h>
 #include <__mutex_base>
+#include <__utility/move.h>
 #include <version>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Index: libcxx/include/__locale
===================================================================
--- libcxx/include/__locale
+++ libcxx/include/__locale
@@ -12,6 +12,7 @@
 
 #include <__availability>
 #include <__config>
+#include <__memory/shared_ptr.h> // __shared_count
 #include <cctype>
 #include <cstdint>
 #include <locale.h>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138599.477580.patch
Type: text/x-patch
Size: 2323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221123/592d8fc6/attachment.bin>


More information about the libcxx-commits mailing list