================ @@ -8357,6 +8357,16 @@ NamedDecl *Sema::ActOnVariableDeclarator( D.isFunctionDefinition()); } + // Warn about the use of a weak pointer authentication schema on a variable ---------------- ojhunt wrote:
This should be pulled into a separate function - we'll want to use this for other declaration types over time, and it will likely become more complex as additional rules occur. Something like ```cpp bool Sema::DiagnoseWeakPointerAuthenticationSchema(NamedDecl *ND) { ... } ``` It's possible we'll need other information over time, but I think for now that's sufficient. https://github.com/llvm/llvm-project/pull/157779 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits