]> granicus.if.org Git - clang/commit
Parse Microsoft __declspec appearing after class body
authorAlp Toker <alp@nuanti.com>
Sun, 24 Nov 2013 20:24:54 +0000 (20:24 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 24 Nov 2013 20:24:54 +0000 (20:24 +0000)
commit9489a43a87742f2036968c42413224e8defaeb4e
treeb7a00e52d16e4641824e8d8cc77d4dc49544ad62
parent1d45f07bd8bfcc7f8f276e92e0032bc8d9179c42
Parse Microsoft __declspec appearing after class body

MSVC applies these to the following declaration only if present, otherwise
silently ignores them whereas we'll issue a warning.

Handling differs from ordinary attributes appearing in the same place, so add a
Sema test to make sure we get it right.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195577 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDeclCXX.cpp
test/SemaCXX/MicrosoftExtensions.cpp