[all-commits] [llvm/llvm-project] 4a55d4: Implement [[msvc::no_unique_address]] (#65675)

Amy Huang via All-commits all-commits at lists.llvm.org
Fri Sep 22 13:28:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a55d426967b9c70f5dea7b3a389e11393a4f4c4
      https://github.com/llvm/llvm-project/commit/4a55d426967b9c70f5dea7b3a389e11393a4f4c4
  Author: Amy Huang <akhuang at google.com>
  Date:   2023-09-22 (Fri, 22 Sep 2023)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/lib/AST/Decl.cpp
    M clang/lib/AST/RecordLayoutBuilder.cpp
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/Layout/ms-no-unique-address.cpp
    M clang/test/Preprocessor/has_attribute.cpp
    A clang/test/SemaCXX/cxx2a-ms-no-unique-address.cpp

  Log Message:
  -----------
  Implement [[msvc::no_unique_address]] (#65675)

This implements the [[msvc::no_unique_address]] attribute.

There is not ABI compatibility in this patch because the attribute is
relatively new and there's still some uncertainty in the MSVC version.

Bug: https://github.com/llvm/llvm-project/issues/49358

Also see https://reviews.llvm.org/D157762.




More information about the All-commits mailing list