[libc] Add cpp::byte
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 19 Oct 2022 21:40:40 +0000 (21:40 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Sat, 22 Oct 2022 20:54:14 +0000 (20:54 +0000)
commitd02525cab75161fceb2a4ecb1dd0a5cbac4856ed
tree108ea595ecef3f500f9bbb8e3be010a71087684b
parent446981bdb64d0ae24ac77b8ba07f3ee3808c3936
[libc] Add cpp::byte

This provides the equivalent of std::byte.
std::byte is a distinct type that implements the concept of byte as specified in the C++ language definition.
https://en.cppreference.com/w/cpp/types/byte

Differential Revision: https://reviews.llvm.org/D136294
libc/src/__support/CPP/CMakeLists.txt
libc/src/__support/CPP/cstddef.h [new file with mode: 0644]
libc/test/src/__support/CPP/CMakeLists.txt
libc/test/src/__support/CPP/cstddef_test.cpp [new file with mode: 0644]
utils/bazel/llvm-project-overlay/libc/BUILD.bazel