[clang] [clang] Add support for `__ptrauth` being applied to integer types (PR #137580)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Fri May 9 11:39:46 PDT 2025
================
@@ -1031,10 +1031,12 @@ def err_ptrauth_qualifier_invalid : Error<
"%select{return type|parameter type|property}1 may not be qualified with '__ptrauth'; type is %0">;
def err_ptrauth_qualifier_cast : Error<
"cannot cast to '__ptrauth'-qualified type %0">;
-def err_ptrauth_qualifier_nonpointer : Error<
- "'__ptrauth' qualifier only applies to pointer types; %0 is invalid">;
-def err_ptrauth_qualifier_redundant : Error<
- "type %0 is already %1-qualified">;
+def err_ptrauth_qualifier_invalid_target
+ : Error<"'__ptrauth' qualifier only applies to pointer or pointer sized "
+ "integer"
+ " types; %0 is invalid">;
+def err_ptrauth_qualifier_redundant
+ : Error<"type %0 is already __ptrauth-qualified">;
----------------
ojhunt wrote:
yeah I find the 80col breaks especially irksome in diagnostics, but also if we went to my preferred limit of 120 they'd be annoying to break :D
https://github.com/llvm/llvm-project/pull/137580
More information about the cfe-commits
mailing list