[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 20 08:03:23 PST 2025


================
@@ -5017,6 +5037,10 @@ def note_ovl_candidate_bad_ownership : Note<
     "%select{no|__unsafe_unretained|__strong|__weak|__autoreleasing}4 ownership,"
     " but parameter has %select{no|__unsafe_unretained|__strong|__weak|"
     "__autoreleasing}5 ownership">;
+def note_ovl_candidate_bad_ptrauth : Note<
+    "candidate %sub{select_ovl_candidate_kind}0,1,2 not viable: "
+    "%ordinal8 argument (%3) has %select{no ptrauth|%5}4 qualifier,"
+    " but parameter has %select{no ptrauth|%7}6 qualifier">;
----------------
AaronBallman wrote:

```suggestion
    "%ordinal8 argument (%3) has %select{no '__ptrauth'|%5}4 qualifier,"
    " but parameter has %select{no '__ptrauth'|%7}6 qualifier">;
```

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


More information about the cfe-commits mailing list