llvm-project/libcxx/test
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
..
configs [libc++] Include <__config_site> from <__config> 2021-03-30 14:06:11 -07:00
libcxx [libc++] Implement D2351R0 "Mark all library static cast wrappers as [[nodiscard]]" 2021-04-12 12:29:15 -04:00
std [libc++] Implement D2351R0 "Mark all library static cast wrappers as [[nodiscard]]" 2021-04-12 12:29:15 -04:00
support [libcxx] [test] Allow C:\System Volume Information to be missing 2021-04-06 20:55:18 +03:00
CMakeLists.txt [libc++] Use add_lit_testsuite to register the libc++ test suite 2021-03-24 16:47:34 -04:00
lit.cfg.py [libc++] Allow specifying custom Lit config files 2020-06-18 10:06:04 -04:00