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)
commit65d9468435f747fce913020210170c5d69d3c4dc
tree2eea62094ea6fa0dc0950424e84a6ea2e94e703a
parent517cb27c4382bfce35c512bd3c54cb74d6cca12c
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.

llvm-svn: 193170
clang/lib/Parse/ParseStmt.cpp
clang/test/Parser/bad-control.c