[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 24 08:16:01 PDT 2025
================
@@ -3929,6 +3929,14 @@ def CFICanonicalJumpTable : InheritableAttr {
let SimpleHandler = 1;
}
+def CFISalt : DeclOrTypeAttr {
+ let Spellings = [Clang<"cfi_salt">];
+ let Args = [StringArgument<"Salt">];
+ let Subjects = SubjectList<[Function, Field, Var, TypedefName], ErrorDiag>;
----------------
AaronBallman wrote:
Sorry for missing this earlier, but should this be a `TypeAttr` and only apply to function types? I don't see any documentation or test cases for it being applied to a field, var, or typedef name.
https://github.com/llvm/llvm-project/pull/141846
More information about the cfe-commits
mailing list