]> granicus.if.org Git - clang/commit
MS ABI: Mangle this qualifiers on function types
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 12 Aug 2014 17:53:10 +0000 (17:53 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 12 Aug 2014 17:53:10 +0000 (17:53 +0000)
commit4d0e9cd03f641e6c4411a6807ae0fcde9d7dbe34
tree0fa5daca651b6d6e801fbe7e42bef9f167c9295b
parent58c713a321c85c924a38f3cab709804d4498c45f
MS ABI: Mangle this qualifiers on function types

C++11 allows this qualifiers to exist on function types when used in
template arguments.  Previously, I believed it wasn't possible because
MSVC rejected declarations like: S<int () const &> s;

However, it turns out MSVC properly allows them in using declarations;
updated clang to be compatible with this mangling.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215464 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/MicrosoftMangle.cpp
test/CodeGenCXX/mangle-ms-cxx11.cpp