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

via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 3 07:54:22 PST 2025


================
@@ -3324,6 +3324,9 @@ def err_attribute_argument_out_of_range : Error<
 def err_init_priority_object_attr : Error<
   "can only use 'init_priority' attribute on file-scope definitions "
   "of objects of class type">;
+def warn_init_priority_reserved : Warning<
+  "requested 'init_priority' %0 is reserved for internal use">,
+  InGroup<InitPriorityReserved>;
----------------
el-ev wrote:

Thank you for your suggestions. It's now revised.

https://github.com/llvm/llvm-project/pull/121577


More information about the cfe-commits mailing list