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

Amy Huang via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 13 15:46:52 PDT 2023


================
@@ -55,7 +55,7 @@ CXX11(unlikely)
 // CHECK: likely: 201803L
 // CHECK: maybe_unused: 201603L
 // ITANIUM: no_unique_address: 201803L
-// WINDOWS: no_unique_address: 0
+// WINDOWS: no_unique_address: 201803L 
----------------
amykhuang wrote:

Tried this and the inheritance part wasn't quite working (think that the NoUniqueAddress should be a class, but in that case, not sure how to parse the two attributes). I did a slightly different version where we have three attributes with no inheritance (MS, Itanium, and general) and just parse the MS and Itanium versions as the general version in SemaDeclAttr. It at least passes the tests that were broken before.

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


More information about the cfe-commits mailing list