diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2024-09-16 15:06:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 15:06:20 -0400 |
commit | 09e3a360581dc36d0820d3fb6da9bd7cfed87b5d (patch) | |
tree | 73ede9c12022fdb66dfca29777fa134a3c21e82a /libcxx/test/std/utilities/function.objects | |
parent | 1bfc3d0de591b6b4e18ee720bd24f58e45d597ef (diff) | |
download | llvm-09e3a360581dc36d0820d3fb6da9bd7cfed87b5d.zip llvm-09e3a360581dc36d0820d3fb6da9bd7cfed87b5d.tar.gz llvm-09e3a360581dc36d0820d3fb6da9bd7cfed87b5d.tar.bz2 |
[libc++][modules] Fix missing and incorrect includes (#108850)
This patch adds a large number of missing includes in the libc++ headers
and the test suite. Those were found as part of the effort to move
towards a mostly monolithic top-level std module.
Diffstat (limited to 'libcxx/test/std/utilities/function.objects')
4 files changed, 11 insertions, 4 deletions
diff --git a/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp b/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp index 5940988..25ee761 100644 --- a/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp @@ -13,6 +13,8 @@ // template<class T> struct is_bind_expression #include <functional> +#include <type_traits> + #include "test_macros.h" template <bool Expected, class T> diff --git a/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isplace/is_placeholder.pass.cpp b/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isplace/is_placeholder.pass.cpp index 1e85ca7..48ce625 100644 --- a/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isplace/is_placeholder.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isplace/is_placeholder.pass.cpp @@ -11,6 +11,8 @@ // struct is_placeholder #include <functional> +#include <type_traits> + #include "test_macros.h" template <int Expected, class T> diff --git a/libcxx/test/std/utilities/function.objects/unord.hash/enum.pass.cpp b/libcxx/test/std/utilities/function.objects/unord.hash/enum.pass.cpp index 54e9f25..fd1fbe5 100644 --- a/libcxx/test/std/utilities/function.objects/unord.hash/enum.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/unord.hash/enum.pass.cpp @@ -12,12 +12,14 @@ // Make sure that we can hash enumeration values. -#include "test_macros.h" - #include <functional> #include <cassert> -#include <type_traits> +#include <cstddef> +#include <cstdint> #include <limits> +#include <type_traits> + +#include "test_macros.h" enum class Colors { red, orange, yellow, green, blue, indigo, violet }; enum class Cardinals { zero, one, two, three, five=5 }; diff --git a/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp b/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp index 4d6bc17..14af709 100644 --- a/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp @@ -19,9 +19,10 @@ #include <functional> #include <cassert> -#include <type_traits> #include <cstddef> +#include <cstdint> #include <limits> +#include <type_traits> #include "test_macros.h" |