summaryrefslogtreecommitdiffstats
path: root/clang/utils/token-delta.py
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2013-10-21 09:34:44 +0000
committerSerge Pavlov <sepavloff@gmail.com>2013-10-21 09:34:44 +0000
commit6652921d5aba1e5c158212d288d2b7d6e53386c8 (patch)
treefb23cb362c0e8c0fb7df46afa05ff11d9510a5e3 /clang/utils/token-delta.py
parentb773785a593592020a449dfcfe65bd4e4f93fe71 (diff)
downloadbcm5719-llvm-6652921d5aba1e5c158212d288d2b7d6e53386c8.tar.gz
bcm5719-llvm-6652921d5aba1e5c158212d288d2b7d6e53386c8.zip
Fix to PR8880 (clang dies processing a for loop).
Due to statement expressions supported as GCC extension, it is possible to put 'break' or 'continue' into a loop/switch statement but outside its body, for example: for ( ; ({ if (first) { first = 0; continue; } 0; }); ) Such usage must be diagnosed as an error, GCC rejects it. To recognize this and similar patterns the flags BreakScope and ContinueScope are temporarily turned off while parsing condition expression. Differential Revision: http://llvm-reviews.chandlerc.com/D1762 llvm-svn: 193073
Diffstat (limited to 'clang/utils/token-delta.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud