See https://reviews.llvm.org/D105905 for context.
Details
- Reviewers
• Quuxplusone mstorsjo ldionne - Group Reviewers
Restricted Project - Commits
- rG15bf66d2f831: [libc++] Tidy-up instances of __STDCPP_DEFAULT_NEW_ALIGNMENT__ in the tests
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
LGTM % comments. Requesting changes, but I don't really need to see it again.
libcxx/test/std/containers/sequences/array/size_and_alignment.pass.cpp | ||
---|---|---|
47 | Since this is >= 11, do we even need TEST_ALIGNXX, or could this be straightforwardly alignas(2 * alignof(std::max_align_t))? | |
libcxx/test/std/language.support/support.types/max_align_t.compile.pass.cpp | ||
22–23 | I believe it's safe to test these two traits in all modes. Just don't test is_pod unless TEST_STD_VER <= 17. | |
30 | Since this is UNSUPPORTED: c++03, I think it's safe to use alignof(std::max_align_t) throughout instead of std::alignment_of<std::max_align_t>::value. std::alignment_of is at least en route to deprecation, if not there yet, and it'll be one less thing to worry about in the future. |
Since this is >= 11, do we even need TEST_ALIGNXX, or could this be straightforwardly alignas(2 * alignof(std::max_align_t))?