Correct the __has_c_attribute value for nodiscard
authorAaron Ballman <aaron@aaronballman.com>
Tue, 13 Sep 2022 12:09:55 +0000 (08:09 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 13 Sep 2022 12:13:01 +0000 (08:13 -0400)
commit1b19df12b84a7045f75e34009a3a7ff44f599375
treeeab77f822eb0b05a4ee09ad3c8959974646ede6e
parent7f57b646d1501fedb21cfe8e02d5ede243ac51b1
Correct the __has_c_attribute value for nodiscard

The original proposal was adopted in Apr 2019 and so the previous value
was 201904L. However, a subsequent proposal (N2448) was adopted to add
an optional message argument to the attribute. We already support that
functionality, but had not bumped the feature test value.
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/Attr.td
clang/test/Preprocessor/has_c_attribute.c
clang/test/Sema/c2x-nodiscard.c