================ @@ -2868,6 +2868,11 @@ def M68kRTD: DeclOrTypeAttr { let Documentation = [M68kRTDDocs]; } +def PreserveNone : DeclOrTypeAttr { + let Spellings = [Clang<"preserve_none">]; ---------------- weiguozhi wrote:
I tried to add ``` let Subjects = SubjectList<[Function]>; ``` But it doesn't work for the code ``` void __attribute__((preserve_none)) boo(void *ptr) { } void (__attribute__((preserve_none)) *pboo1)(void *) = boo; ``` I got the error message ``` 'preserve_none' attribute only applies to functions ``` https://github.com/llvm/llvm-project/pull/76868 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits