gcc/libstdc++-v3/include/c_global
Jonathan Wakely 406f58e1e3 libstdc++: Add nodiscard attribute to cast-like functions
Add [[nodiscard]] to functions that are effectively just a static_cast,
as per P2351. Also add it to std::addressof.

libstdc++-v3/ChangeLog:

	* include/bits/move.h (forward, move, move_if_noexcept)
	(addressof): Add _GLIBCXX_NODISCARD.
	* include/bits/ranges_cmp.h (identity::operator()): Add
	nodiscard attribute.
	* include/c_global/cstddef (to_integer): Likewise.
	* include/std/bit (bit_cast): Likewise.
	* include/std/utility (as_const, to_underlying): Likewise.
2021-04-06 16:43:25 +01:00
..
cassert Update copyright years. 2021-01-04 10:26:59 +01:00
ccomplex Update copyright years. 2021-01-04 10:26:59 +01:00
cctype Update copyright years. 2021-01-04 10:26:59 +01:00
cerrno Update copyright years. 2021-01-04 10:26:59 +01:00
cfenv Update copyright years. 2021-01-04 10:26:59 +01:00
cfloat Update copyright years. 2021-01-04 10:26:59 +01:00
cinttypes Update copyright years. 2021-01-04 10:26:59 +01:00
ciso646 Update copyright years. 2021-01-04 10:26:59 +01:00
climits Update copyright years. 2021-01-04 10:26:59 +01:00
clocale Update copyright years. 2021-01-04 10:26:59 +01:00
cmath Update copyright years. 2021-01-04 10:26:59 +01:00
csetjmp Update copyright years. 2021-01-04 10:26:59 +01:00
csignal Update copyright years. 2021-01-04 10:26:59 +01:00
cstdalign Update copyright years. 2021-01-04 10:26:59 +01:00
cstdarg Update copyright years. 2021-01-04 10:26:59 +01:00
cstdbool Update copyright years. 2021-01-04 10:26:59 +01:00
cstddef libstdc++: Add nodiscard attribute to cast-like functions 2021-04-06 16:43:25 +01:00
cstdint Update copyright years. 2021-01-04 10:26:59 +01:00
cstdio Update copyright years. 2021-01-04 10:26:59 +01:00
cstdlib Update copyright years. 2021-01-04 10:26:59 +01:00
cstring Update copyright years. 2021-01-04 10:26:59 +01:00
ctgmath Update copyright years. 2021-01-04 10:26:59 +01:00
ctime Update copyright years. 2021-01-04 10:26:59 +01:00
cuchar Update copyright years. 2021-01-04 10:26:59 +01:00
cwchar Update copyright years. 2021-01-04 10:26:59 +01:00
cwctype Update copyright years. 2021-01-04 10:26:59 +01:00