]> granicus.if.org Git - clang/commit
Implement Microsoft-compatible mangling for decomposition declarations.
authorNico Weber <nicolasweber@gmx.de>
Thu, 5 Sep 2019 21:08:50 +0000 (21:08 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 5 Sep 2019 21:08:50 +0000 (21:08 +0000)
commitd83daae45a5611e7a3739909185b749240c220b8
tree2c99d71b66b5755a056ede8d36210aa8831a727c
parent724912e2e4dc2232819ff88c6dd80f9996bb00a6
Implement Microsoft-compatible mangling for decomposition declarations.

Match cl.exe's mangling for decomposition declarations.

Decomposition declarations are considered to be anonymous structs,
and use the same convention as for anonymous struct/union declarations.

Naming confirmed to match https://godbolt.org/z/K2osJa

Patch from Eric Astor <epastor@google.com>!

Differential Revision: https://reviews.llvm.org/D67202

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371124 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Mangle.h
lib/AST/MicrosoftMangle.cpp
test/CodeGenCXX/mangle-ms-cxx17.cpp [new file with mode: 0644]