[clang] [clang][ptrauth] Warn about the use of a weak signing schema (PR #157779)
Martin Balao Alonso via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 11 14:14:59 PDT 2025
================
@@ -8357,6 +8357,16 @@ NamedDecl *Sema::ActOnVariableDeclarator(
D.isFunctionDefinition());
}
+ // Warn about the use of a weak pointer authentication schema on a variable
----------------
martinuy wrote:
Sounds good, but I have a question. My understanding is that you are thinking of moving both the condition we check and the `Diag` call into a separate function. Considering that no action such as invalidating the declaration would be taken on the caller side -at least for now-, shouldn't the return type of the separate function be `void` (similar to `void Sema::DiagnoseUniqueObjectDuplication(const VarDecl *)` or `void Sema::DiagnoseAutoDeductionFailure(const VarDecl *, const Expr *)`?
https://github.com/llvm/llvm-project/pull/157779
More information about the cfe-commits
mailing list