[clang] [clang] Fix `gnu::init_priority` attribute handling for reserved values (PR #121577)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 17 08:03:37 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<
----------------
AaronBallman wrote:
Should we treat `init_priority`, `constructor`, and `destructor` all the same?
https://github.com/llvm/llvm-project/pull/121577
More information about the cfe-commits
mailing list