[clang] [Frontend][Sema] Add CC1-only -fms-anonymous-structs to enable Microsoft anonymous struct/union feature (PR #176551)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 23 17:46:23 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
----------------
hubert-reinterpretcast wrote:
> We probably want to be able to disable this as well, so probably need to use BoolF.
@erichkeane, it looks like the consensus so far is leaning towards a CC1-only option. In that case, is there still a strong desire for being able to disable this? Do you envision being able to enable Microsoft extensions in general without this specific extension?
https://github.com/llvm/llvm-project/pull/176551
More information about the cfe-commits
mailing list