]> granicus.if.org Git - clang/commit
Properly diagnose Microsoft __declspec attributes which have optional argument lists...
authorAaron Ballman <aaron@aaronballman.com>
Mon, 14 Apr 2014 16:44:26 +0000 (16:44 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 14 Apr 2014 16:44:26 +0000 (16:44 +0000)
commit0fc2a68848affd7bc99691400e5c1a85c1d11654
treeae4e1fc6f33a6905d7873a3274e4af30f8887736
parented3bdc5f9ada3d87f1a7e7892305d240edd15c68
Properly diagnose Microsoft __declspec attributes which have optional argument lists when the arguments are elided. eg)

__declspec(deprecated()) // error
__declspec(deprecated) // OK
__declspec(deprecated("")) // OK

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206191 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDecl.cpp
test/Parser/MicrosoftExtensions.c