[clang] Implement [[msvc::no_unique_address]] (PR #65675)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 12 12:58:13 PDT 2023


================
@@ -1798,11 +1798,13 @@ def ArmMveStrictPolymorphism : TypeAttr, TargetSpecificAttr<TargetARM> {
   let Documentation = [ArmMveStrictPolymorphismDocs];
 }
 
-def NoUniqueAddress : InheritableAttr, TargetSpecificAttr<TargetItaniumCXXABI> {
-  let Spellings = [CXX11<"", "no_unique_address", 201803>];
+def NoUniqueAddress : InheritableAttr {
+  let Spellings = [CXX11<"", "no_unique_address", 201803>,
+                   CXX11<"msvc", "no_unique_address", 201803>];
+  let Accessors = [Accessor<"isDefault", [CXX11<"", "no_unique_address", 201803>]>,
----------------
erichkeane wrote:

```suggestion
  let Accessors = [Accessor<"isStandard", [CXX11<"", "no_unique_address", 201803>]>,
```

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


More information about the cfe-commits mailing list