]> granicus.if.org Git - clang/commit
parser: diagnose empty attribute blocks
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 16 Jun 2015 20:03:47 +0000 (20:03 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 16 Jun 2015 20:03:47 +0000 (20:03 +0000)
commit359dccdfd3c4c79a7b8035e6cd23bdfd33ee3c08
tree2f809269b2f3a2fbe77c4fe16baecc1af50aed2f
parent4c5f7dba259463968a175aa7ea6560c60a93c9ae
parser: diagnose empty attribute blocks

MS attributes do not permit empty attribute blocks.  Correctly diagnose those.
We continue to parse to ensure that we recover correctly.  Because the block is
empty, we do not need to skip any tokens.

Bonus: tweak the comment that I updated but forgot to remove the function name
in a previous commit.

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