[clang] [Driver][Frontend] Add -f[no-]ms-anonymous-structs flag to control Microsoft anonymous struct/union extension (PR #176551)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 28 05:42:07 PST 2026


================
@@ -109,6 +109,7 @@ Non-comprehensive list of changes in this release
 
 New Compiler Flags
 ------------------
+- New option ``-fms-anonymous-structs`` / ``-fno-ms-anonymous-structs`` added to enable or disable Microsoft's anonymous struct/union extension without enabling other ``-fms-extensions`` features [GH177607].
----------------
AaronBallman wrote:

```suggestion
- New option ``-fms-anonymous-structs`` / ``-fno-ms-anonymous-structs`` added
  to enable or disable Microsoft's anonymous struct/union extension without
  enabling other ``-fms-extensions`` features (#GH177607).
```

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


More information about the cfe-commits mailing list