]> granicus.if.org Git - clang/commit
Crash even less on malformed attributes in an incorrect location.
authorNico Weber <nicolasweber@gmx.de>
Mon, 29 Dec 2014 21:56:22 +0000 (21:56 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 29 Dec 2014 21:56:22 +0000 (21:56 +0000)
commitbbe74454da54091758409a2f2aa9680f335bd361
tree4ebecb217403d921d64b940eeff2a5420bce7f29
parentdfa25cb2d16f812bb28bdf60b6b891f4e9140072
Crash even less on malformed attributes in an incorrect location.

This is a follow-up to r224915.  This adds a bit more line noise to the tests
added in that revision to make sure the parser is ready for a toplevel decl
after each incorrect line.  Use this to move the tests up to where they belong.
This uncovered that the early return was missing a call to
ActOnTagDefinitionError(), so add that. (Also fixes at least one of the crashes
on SLi's bot.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224958 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDeclCXX.cpp
test/Parser/cxx0x-attributes.cpp