diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2023-11-30 13:51:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 13:51:02 +0100 |
commit | b703bd821d011011431c3a961e816b8fc33912da (patch) | |
tree | 0f4bd6db19d9a2dd033454fbd4b75427148cecef /utils | |
parent | 2ec0283c0405535594a46ea4244b09e63a797f0b (diff) | |
download | llvm-b703bd821d011011431c3a961e816b8fc33912da.zip llvm-b703bd821d011011431c3a961e816b8fc33912da.tar.gz llvm-b703bd821d011011431c3a961e816b8fc33912da.tar.bz2 |
[libc] Add more functions in CPP/bit.h (#73814)
Once this is submitted we can remove `include/__support/bit.h` that
duplicates some of this functionality.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/bazel/llvm-project-overlay/libc/BUILD.bazel | 1 | ||||
-rw-r--r-- | utils/bazel/llvm-project-overlay/libc/test/src/__support/CPP/BUILD.bazel | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel index 2a88ad8..a0a6a43 100644 --- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel @@ -161,6 +161,7 @@ libc_support_library( name = "__support_cpp_bit", hdrs = ["src/__support/CPP/bit.h"], deps = [ + ":__support_cpp_limits", ":__support_cpp_type_traits", ":__support_macros_attributes", ":__support_macros_config", diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/__support/CPP/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/__support/CPP/BUILD.bazel index 59dcfd6..07d9ac1 100644 --- a/utils/bazel/llvm-project-overlay/libc/test/src/__support/CPP/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/test/src/__support/CPP/BUILD.bazel @@ -23,6 +23,15 @@ libc_test( ) libc_test( + name = "bit_test", + srcs = ["bit_test.cpp"], + deps = [ + "//libc:__support_cpp_bit", + "//libc:__support_uint", + ], +) + +libc_test( name = "cstddef_test", srcs = ["cstddef_test.cpp"], deps = ["//libc:__support_cpp_cstddef"], |