You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/containers
Eric Fiselier 272871b658 Move internal usages of `alignof`/`__alignof` to use `_LIBCPP_ALIGNOF`.
Summary:
Starting in Clang 8.0 and GCC 8.0, `alignof` and `__alignof` return different values in same cases. Specifically `alignof` and `_Alignof` return the minimum alignment for a type, where as `__alignof` returns the preferred alignment. libc++ currently uses `__alignof` but means to use `alignof`. See  llvm.org/PR39713

This patch introduces the macro `_LIBCPP_ALIGNOF` so we can control which spelling gets used.

This patch does not introduce any ABI guard to provide the old behavior with newer compilers. However, if we decide that is needed, this patch makes it trivial to implement.

I think we should commit this change immediately, and decide what we want to do about the ABI afterwards. 

Reviewers: ldionne, EricWF

Reviewed By: ldionne, EricWF

Subscribers: jyknight, christof, libcxx-commits

Differential Revision: https://reviews.llvm.org/D54814

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@351289 91177308-0d34-0410-b5e6-96231b3b80d8
6 years ago
..
associative Implement P1209 - Adopt Consistent Container Erasure from Library Fundamentals 2 for C++20. Reviewed as https://reviews.llvm.org/D55532 6 years ago
container.adaptors Get tests compiling with -Wunused-local-typedef 6 years ago
container.node [libcxx] [test] Avoid -Wunused-local-typedef in node_handle.pass.cpp. 6 years ago
container.requirements Fix test failures after r334053. 7 years ago
containers.general Move test into test/std subdirectory. 10 years ago
sequences Move internal usages of `alignof`/`__alignof` to use `_LIBCPP_ALIGNOF`. 6 years ago
unord [NFC] Normalize some test 'main' signatures 6 years ago
views Fix static assert diagnostic checks in i386 6 years ago
Copyable.h Move test into test/std subdirectory. 10 years ago
Emplaceable.h [libcxx] Fix incorrect #include for std::hash 6 years ago
NotConstructible.h [libcxx] [test] Update for C++17 feature removals. 7 years ago
map_allocator_requirement_test_templates.h Get tests compiling with -Wunused-local-typedef 6 years ago
nothing_to_do.pass.cpp Move test into test/std subdirectory. 10 years ago
set_allocator_requirement_test_templates.h Get tests compiling with -Wunused-local-typedef 6 years ago
test_compare.h [libcxx] [test] Fix whitespace, NFC. 7 years ago
test_hash.h Move test into test/std subdirectory. 10 years ago