[all-commits] [llvm/llvm-project] 1b19df: Correct the __has_c_attribute value for nodiscard

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Sep 13 05:13:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b19df12b84a7045f75e34009a3a7ff44f599375
      https://github.com/llvm/llvm-project/commit/1b19df12b84a7045f75e34009a3a7ff44f599375
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-09-13 (Tue, 13 Sep 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Attr.td
    M clang/test/Preprocessor/has_c_attribute.c
    M clang/test/Sema/c2x-nodiscard.c

  Log Message:
  -----------
  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.




More information about the All-commits mailing list