]> granicus.if.org Git - clang/commit
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)
commit7a21961ffdf97605911c8f26017bfcc98e6e36d5
treeb19f44d20eacf073948c25652131deb01a9aef32
parent69084593cd4266c09faa0af9a41c4b8363dbf540
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280576 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp