[libcxx-commits] [libcxx] b1009bb - [libc++] Add missing includes of <cstddef>

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 10 08:35:54 PDT 2022


Author: Louis Dionne
Date: 2022-08-10T11:35:41-04:00
New Revision: b1009bbd9e3d5acd85e92cb7f9a1109d2e72967c

URL: https://github.com/llvm/llvm-project/commit/b1009bbd9e3d5acd85e92cb7f9a1109d2e72967c
DIFF: https://github.com/llvm/llvm-project/commit/b1009bbd9e3d5acd85e92cb7f9a1109d2e72967c.diff

LOG: [libc++] Add missing includes of <cstddef>

Added: 
    

Modified: 
    libcxx/include/__iterator/incrementable_traits.h
    libcxx/include/__iterator/iterator_traits.h
    libcxx/include/__memory/pointer_traits.h
    libcxx/include/__ranges/size.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__iterator/incrementable_traits.h b/libcxx/include/__iterator/incrementable_traits.h
index 4109b58d46a9e..e6a5ed720f9fa 100644
--- a/libcxx/include/__iterator/incrementable_traits.h
+++ b/libcxx/include/__iterator/incrementable_traits.h
@@ -13,6 +13,7 @@
 #include <__config>
 #include <__type_traits/is_primary_template.h>
 #include <concepts>
+#include <cstddef>
 #include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

diff  --git a/libcxx/include/__iterator/iterator_traits.h b/libcxx/include/__iterator/iterator_traits.h
index 5600a2b2f526a..0cc64adc0de96 100644
--- a/libcxx/include/__iterator/iterator_traits.h
+++ b/libcxx/include/__iterator/iterator_traits.h
@@ -14,6 +14,7 @@
 #include <__iterator/incrementable_traits.h>
 #include <__iterator/readable_traits.h>
 #include <concepts>
+#include <cstddef>
 #include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

diff  --git a/libcxx/include/__memory/pointer_traits.h b/libcxx/include/__memory/pointer_traits.h
index b9aa5fbf243cb..348f7323a41d5 100644
--- a/libcxx/include/__memory/pointer_traits.h
+++ b/libcxx/include/__memory/pointer_traits.h
@@ -12,6 +12,7 @@
 
 #include <__config>
 #include <__memory/addressof.h>
+#include <cstddef>
 #include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

diff  --git a/libcxx/include/__ranges/size.h b/libcxx/include/__ranges/size.h
index 32ca4b854bc3b..0e6d295651a3c 100644
--- a/libcxx/include/__ranges/size.h
+++ b/libcxx/include/__ranges/size.h
@@ -16,6 +16,7 @@
 #include <__ranges/access.h>
 #include <__utility/auto_cast.h>
 #include <concepts>
+#include <cstddef>
 #include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)


        


More information about the libcxx-commits mailing list