[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 5 19:43:14 PST 2025


================
@@ -2643,6 +2643,19 @@ def CountedByOrNull : DeclOrTypeAttr {
   let LangOpts = [COnly];
 }
 
+def NoFieldProtection : DeclOrTypeAttr {
+  let Spellings = [Clang<"no_field_protection">];
----------------
pcc wrote:

I figured that we could use the same attribute for e.g. enum fields if we ever end up adding support for them. But I don't feel strongly about that.

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


More information about the llvm-branch-commits mailing list