llvm-project/libcxx/test/std/utilities/utility
Arthur O'Dwyer 4b7bad9eae [libc++] Implement D2351R0 "Mark all library static cast wrappers as [[nodiscard]]"
These [[nodiscard]] annotations are added as a conforming extension;
it's unclear whether the paper will actually be adopted and make them
mandatory, but they do seem like good ideas regardless.

https://isocpp.org/files/papers/D2351R0.pdf

This patch implements the paper's effect on:
- std::to_integer, std::to_underlying
- std::forward, std::move, std::move_if_noexcept
- std::as_const
- std::identity

The paper also affects (but libc++ does not yet have an implementation of):
- std::bit_cast

Differential Revision: https://reviews.llvm.org/D99895
2021-04-12 12:29:15 -04:00
..
as_const [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
declval Make rvalue metaprogramming traits work in C++03. 2019-06-21 14:31:34 +00:00
exchange [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
forward [libc++] Implement D2351R0 "Mark all library static cast wrappers as [[nodiscard]]" 2021-04-12 12:29:15 -04:00
operators
pairs [libc++] [P1032] Misc constexpr bits in <iterator>, <string_view>, <tuple>, <utility>. 2021-03-25 10:34:35 -04:00
utility.inplace [libc++] Fix failures when running the test suite without RTTI 2020-09-21 20:17:24 -04:00
utility.swap This patch makes swap functions constexpr. Both swap overloads, swap_ranges and iter_swap are updated (with tests). 2019-07-05 20:13:34 +00:00
utility.underlying [libc++] Divorce the std Lit feature from the -std=XXX compiler flag 2021-04-12 11:55:39 -04:00
synopsis.pass.cpp [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00