]> granicus.if.org Git - clang/commit
Reenable 'break' in 'for' specifier to allow compilation of QT macro 'foreach'
authorSerge Pavlov <sepavloff@gmail.com>
Tue, 22 Oct 2013 17:14:47 +0000 (17:14 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Tue, 22 Oct 2013 17:14:47 +0000 (17:14 +0000)
commit37acb250dbcf580393c9936c1e71552f84220398
treead3233bf2d3fb9b5aeb3044dee602123f16a1ad2
parentc96894305223479789b990522b2877e766979f17
Reenable 'break' in 'for' specifier to allow compilation of QT macro 'foreach'

This is a fix to PR17649, caused by fix in r193073. QT uses 'break' statement
to implement their 'foreach' macro. To enable build of QT, this fix reenables
break but only in 'for' statement specifier and only in the third expression.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193170 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseStmt.cpp
test/Parser/bad-control.c