Jonathan Wakely
c8b024fa4b
libstdc++: Move [[nodiscard]] attributes again [PR101782]
...
Where I moved these nodiscard attributes to made them apply to the
function type, not to the function. This meant they no longer generated
the desired -Wunused-result warnings, and were ill-formed with Clang
(but only a pedwarn with GCC).
Clang also detected ill-formed attributes in <queue> which this fixes.
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
PR libstdc++/101782
* include/bits/ranges_base.h (ranges::begin, ranges::end)
(ranges::rbegin, ranges::rend, ranges::size, ranges::ssize)
(ranges::empty, ranges::data): Move attribute after the
declarator-id instead of at the end of the declarator.
* include/bits/stl_iterator.h (__gnu_cxx::__normal_iterator):
Move attributes back to the start of the function declarator,
but move the requires-clause to the end.
(common_iterator): Move attribute after the declarator-id.
* include/bits/stl_queue.h (queue): Remove ill-formed attributes
from friend declaration that are not definitions.
* include/std/ranges (views::all, views::filter)
(views::transform, views::take, views::take_while,
views::drop) (views::drop_while, views::join,
views::lazy_split) (views::split, views::counted,
views::common, views::reverse) (views::elements): Move
attributes after the declarator-id.
2021-08-05 19:01:51 +01:00
..
2021-01-04 10:26:59 +01:00
2021-03-10 15:27:41 +00:00
2021-04-06 16:43:24 +01:00
2021-01-04 10:26:59 +01:00
2021-06-09 10:32:43 +01:00
2021-06-08 15:55:10 -07:00
2021-01-04 10:26:59 +01:00
2021-04-22 17:35:00 +01:00
2021-05-17 12:05:06 -07:00
2021-04-06 16:43:24 +01:00
2021-06-25 18:47:39 +01:00
2021-07-27 12:04:18 +01:00
2021-07-27 12:04:18 +01:00
2021-01-04 10:26:59 +01:00
2021-01-04 10:26:59 +01:00
2021-08-03 15:30:35 +01:00
2021-06-17 22:00:58 +01:00
2021-01-04 10:26:59 +01:00
2021-03-10 15:27:41 +00:00
2021-01-04 10:26:59 +01:00
2021-07-27 12:13:42 +01:00
2021-07-16 15:03:03 +01:00
2021-04-30 14:57:40 +01:00
2021-03-10 15:27:41 +00:00
2021-03-10 15:27:41 +00:00
2021-08-04 12:54:29 +01:00
2021-01-04 10:26:59 +01:00
2021-04-06 16:43:24 +01:00
2021-07-01 18:45:48 +01:00
2021-04-06 16:43:24 +01:00
2021-07-27 12:04:18 +01:00
2021-01-04 10:26:59 +01:00
2021-01-04 10:26:59 +01:00
2021-07-16 15:03:03 +01:00
2021-04-06 16:43:24 +01:00
2021-04-06 16:43:24 +01:00
2021-06-02 13:33:41 +01:00
2021-07-22 19:39:58 +01:00
2021-04-06 16:43:24 +01:00
2021-03-10 15:27:41 +00:00
2021-01-04 10:26:59 +01:00
2021-06-28 13:34:49 +01:00
2021-08-04 12:54:28 +01:00
2021-01-04 10:26:59 +01:00
2021-04-06 16:43:24 +01:00
2021-01-04 10:26:59 +01:00
2021-08-03 15:06:56 +01:00
2021-04-06 16:43:24 +01:00
2021-01-04 10:26:59 +01:00
2021-05-17 17:58:14 +01:00
2021-01-04 10:26:59 +01:00
2021-01-04 10:26:59 +01:00
2021-04-06 16:43:24 +01:00
2021-07-16 15:03:03 +01:00
2021-05-11 16:11:01 +01:00
2021-04-06 16:43:25 +01:00
2021-01-04 10:26:59 +01:00
2021-03-10 15:27:41 +00:00
2021-06-25 18:47:44 +01:00
2021-03-10 15:27:41 +00:00
2021-04-30 20:30:46 +01:00
2021-03-10 15:27:41 +00:00
2021-01-04 10:26:59 +01:00
2021-01-04 10:26:59 +01:00
2021-07-16 15:03:03 +01:00
2021-08-03 15:41:11 +01:00
2021-08-04 12:54:28 +01:00
2021-08-02 15:30:15 -04:00
2021-08-02 15:30:15 -04:00
2021-08-05 19:01:51 +01:00
2021-06-21 09:45:31 -04:00
2021-07-22 14:37:24 +01:00
2021-07-27 12:04:18 +01:00
2021-04-06 16:43:24 +01:00
2021-04-06 16:43:24 +01:00
2021-01-04 10:26:59 +01:00
2021-04-06 16:43:24 +01:00
2021-01-04 10:26:59 +01:00
2021-04-08 21:42:58 +01:00
2021-04-06 16:43:24 +01:00
2021-08-03 15:24:52 +01:00
2021-08-03 15:24:52 +01:00
2021-04-06 16:43:24 +01:00
2021-08-03 15:24:52 +01:00
2021-04-06 16:43:24 +01:00
2021-01-04 10:26:59 +01:00
2021-06-22 11:06:07 -07:00
2021-04-06 16:43:24 +01:00
2021-06-24 14:04:02 +01:00
2021-04-22 15:49:27 +01:00
2021-04-06 16:43:24 +01:00
2021-04-06 16:43:24 +01:00
2021-01-04 10:26:59 +01:00
2021-07-16 15:03:03 +01:00
2021-07-22 13:53:57 +01:00
2021-04-06 16:43:24 +01:00
2021-04-28 12:45:49 +01:00
2021-08-03 15:30:35 +01:00
2021-07-16 15:03:03 +01:00
2021-08-04 12:54:29 +01:00
2021-01-04 10:26:59 +01:00
2021-08-04 12:54:29 +01:00
2021-02-09 21:56:27 +01:00
2021-01-04 10:26:59 +01:00
2021-08-04 12:54:28 +01:00
2021-04-06 16:43:24 +01:00
2021-08-05 19:01:51 +01:00
2021-08-04 12:54:29 +01:00
2021-04-06 16:43:24 +01:00
2021-04-06 16:43:24 +01:00
2021-04-06 16:43:24 +01:00
2021-04-06 16:43:24 +01:00
2021-07-27 12:04:18 +01:00
2021-08-05 19:01:51 +01:00
2021-01-04 10:26:59 +01:00
2021-07-23 11:22:10 +01:00
2021-04-06 16:43:24 +01:00
2021-08-04 12:54:29 +01:00
2021-01-04 10:26:59 +01:00
2021-04-30 14:57:40 +01:00
2021-04-06 16:43:24 +01:00
2021-08-04 12:54:29 +01:00
2021-08-04 12:54:28 +01:00
2021-08-04 12:54:28 +01:00
2021-06-28 15:16:08 +01:00
2021-01-27 13:45:52 +00:00
2021-01-04 10:26:59 +01:00
2021-07-01 00:25:46 +01:00
2021-07-16 15:03:03 +01:00
2021-03-10 15:27:41 +00:00
2021-07-27 12:04:18 +01:00
2021-04-06 16:43:24 +01:00
2021-04-06 16:43:24 +01:00
2021-04-09 13:09:23 +01:00
2021-01-04 10:26:59 +01:00
2021-07-27 12:04:18 +01:00
2021-01-04 10:26:59 +01:00
2021-01-04 10:26:59 +01:00
2021-01-04 10:26:59 +01:00
2021-01-04 10:26:59 +01:00
2021-04-30 14:57:40 +01:00