[all-commits] [llvm/llvm-project] 9e1eaf: [clang] Fix `gnu::init_priority` attribute handlin...

Iris via All-commits all-commits at lists.llvm.org
Tue Mar 4 09:08:02 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e1eaff95b3284ccec71fec70eb9e286c34974c4
      https://github.com/llvm/llvm-project/commit/9e1eaff95b3284ccec71fec70eb9e286c34974c4
  Author: Iris <0.0 at owo.li>
  Date:   2025-03-04 (Tue, 04 Mar 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/SemaCXX/init-priority-attr.cpp

  Log Message:
  -----------
  [clang] Fix `gnu::init_priority` attribute handling for reserved values (#121577)

- Added a new diagnostic group `InitPriorityReserved`
- Allow values within the range 0-100 of `init_priority` to be used
outside system library, but with a warning
- Updated relavant tests

Fixes #121108



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list