llvm-project/libcxx
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
..
benchmarks [libc++] Include <__config_site> from <__config> 2021-03-30 14:06:11 -07:00
cmake [libc++] Divorce the std Lit feature from the -std=XXX compiler flag 2021-04-12 11:55:39 -04:00
docs [libc++] Implement D2351R0 "Mark all library static cast wrappers as [[nodiscard]]" 2021-04-12 12:29:15 -04:00
include [libc++] Implement D2351R0 "Mark all library static cast wrappers as [[nodiscard]]" 2021-04-12 12:29:15 -04:00
lib [libc++] Implement format_error. 2021-01-28 18:02:53 +01:00
src [CMake] Remove {LIBCXX,LIBCXXABI,LIBUNWIND}_INSTALL_PREFIX 2021-04-01 10:13:07 -07:00
test [libc++] Implement D2351R0 "Mark all library static cast wrappers as [[nodiscard]]" 2021-04-12 12:29:15 -04:00
utils [libc++] Divorce the std Lit feature from the -std=XXX compiler flag 2021-04-12 11:55:39 -04:00
www [libcxx] [docs] Update docs about how to build for Windows 2021-03-15 17:30:26 +02:00
.clang-format
.gitignore [libcxx] Fix .gitignore to not exclude test directories 2020-03-25 17:52:23 -07:00
CMakeLists.txt [CMake] Remove {LIBCXX,LIBCXXABI,LIBUNWIND}_INSTALL_PREFIX 2021-04-01 10:13:07 -07:00
CREDITS.TXT [libcxx] Adds [concept.same] 2020-04-08 18:00:13 -04:00
LICENSE.TXT
TODO.TXT [libc++][NFC] Remove outdated TODO item 2020-07-08 13:04:33 -04:00
appveyor-reqs-install.cmd Attempt to upgrade compiler used by appveyor builds 2019-04-03 20:40:01 +00:00
appveyor.yml disable appveyor config for MSVC 2015 2019-04-03 20:36:51 +00:00