]> granicus.if.org Git - clang/commit
Properly diagnose standard C++ attributes which have optional argument lists when...
authorAaron Ballman <aaron@aaronballman.com>
Mon, 14 Apr 2014 16:03:22 +0000 (16:03 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 14 Apr 2014 16:03:22 +0000 (16:03 +0000)
commit1caab743906f2fccfe1ec4250a4ff2e7cab567b9
treeddc059d1379b10ce432104e2a8592986fb787f2d
parentf7ad99d5ed13f57db92bcffd68c43638a3bf430a
Properly diagnose standard C++ attributes which have optional argument lists when the arguments are elided. eg)

[[deprecated()]] // error
[[deprecated]] // OK
[[deprecated("")]] // OK
[[gnu::deprecated()]] // OK

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206186 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
test/Parser/attributes.c
test/Parser/cxx0x-attributes.cpp