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/utilities/meta/meta.trans/meta.trans.other
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
..
aligned_storage.pass.cpp Move internal usages of `alignof`/`__alignof` to use `_LIBCPP_ALIGNOF`. 6 years ago
aligned_union.fail.cpp Add a fail test for aligned_union of an incomplete type. See LWG#2979. NFC 7 years ago
aligned_union.pass.cpp Implement LWG3034: P0767R1 breaks previously-standard-layout types 7 years ago
common_type.pass.cpp [test] two small cleanups: 6 years ago
conditional.pass.cpp [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 8 years ago
decay.pass.cpp [libcxx] [test] Untabify, NFC. 7 years ago
enable_if.fail.cpp Move test into test/std subdirectory. 10 years ago
enable_if.pass.cpp [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 8 years ago
enable_if2.fail.cpp [libcxx] Improve tests to use the UNSUPPORTED lit directive 9 years ago
remove_cvref.pass.cpp [libcxx] [test] Fix whitespace, NFC. 7 years ago
result_of.pass.cpp Fix PR37407 - callable traits don't correctly check complete types. 7 years ago
result_of11.pass.cpp Fix failing test due to incorrect use of noexcept 7 years ago
type_identity.pass.cpp Implement P0887: The identity metafunction 6 years ago
underlying_type.pass.cpp [libcxx] [test] Avoid MSVC's non-Standard ABI in underlying_type.pass.cpp. 8 years ago