================
@@ -3141,6 +3141,17 @@ defm experimental_omit_vtable_rtti : 
BoolFOption<"experimental-omit-vtable-rtti"
   NegFlag<SetFalse, [], [CC1Option], "Do not omit">,
   BothFlags<[], [CC1Option], " the RTTI component from virtual tables">>;
 
+defm experimental_pointer_field_protection : 
BoolFOption<"experimental-pointer-field-protection",
+  LangOpts<"PointerFieldProtection">, DefaultFalse,
+  PosFlag<SetTrue, [], [CC1Option], "Enable">,
+  NegFlag<SetFalse, [], [], "Do not enable">,
+  BothFlags<[], [ClangOption], " pointer field protection on all non-standard 
layout struct types">>;
+defm experimental_pointer_field_protection_tagged : 
BoolFOption<"experimental-pointer-field-protection-tagged",
----------------
fmayer wrote:

as discussed offline, i would prefer if there was a flag to enable the 
`[[clang:pointer_field_protection]]` while this feature is experimental to 
avoid accidental enablement

https://github.com/llvm/llvm-project/pull/133538
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to