[clang] [Frontend][Sema] Add CC1-only -fms-anonymous-structs to enable Microsoft anonymous struct/union feature (PR #176551)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 23 12:57:18 PST 2026


================
@@ -3327,6 +3327,12 @@ def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>,
   Visibility<[ClangOption, CC1Option, CLOption]>,
   HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">,
   MarshallingInfoFlag<LangOpts<"MicrosoftExt">>, ImpliedByAnyOf<[fms_compatibility.KeyPath]>;
+def fms_anonymous_structs
----------------
erichkeane wrote:

We probably want to be able to disable this as well, so probably need to use BoolF.

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


More information about the cfe-commits mailing list