Let Microsoft attributes apply to the type, not the variable.
authorNico Weber <nicolasweber@gmx.de>
Sat, 3 Sep 2016 03:01:32 +0000 (03:01 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sat, 3 Sep 2016 03:01:32 +0000 (03:01 +0000)
commit32a0fc79874b850bfcfdef6435fddbc57d6b0722
treefe58f7ff0ca8b018d8999efb5f2a57eb19bf88b1
parent20e08048ecdceab8ada7223d5d73e0b95b6abc48
Let Microsoft attributes apply to the type, not the variable.

There was already a function that moved attributes off the declspec into
an attribute list for attributes applying to the type, teach that function to
also move Microsoft attributes around and rename it to match its new broader
role.

Nothing uses Microsoft attributes yet, so no behavior change.

Part of https://reviews.llvm.org/D23895

llvm-svn: 280576
clang/include/clang/Parse/Parser.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseDeclCXX.cpp