summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaFixItUtils.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-02-17 01:35:32 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-02-17 01:35:32 +0000
commit1002d10aaaf18f6b54f6e458b4630f5db9185999 (patch)
tree6d38606e59b1f661fb3cea58a280df2aaf20c4fd /clang/lib/Sema/SemaFixItUtils.cpp
parentdd6c1cd4e8d478d928f5e2ed57473ab5418d9897 (diff)
downloadbcm5719-llvm-1002d10aaaf18f6b54f6e458b4630f5db9185999.tar.gz
bcm5719-llvm-1002d10aaaf18f6b54f6e458b4630f5db9185999.zip
Reject continue/break statements within members of local functions nested within
loop and switch statements, by teaching Scope that a function scope never has a continue/break parent for the purposes of control flow. Remove the hack in block and lambda expressions which worked around this by pretending that such expressions were continue/break scopes. Remove Scope::ControlParent, since it's unused. In passing, teach default statements to recover properly from a missing ';', and add a fixit for same to both default and case labels (the latter already recovered correctly). llvm-svn: 150776
Diffstat (limited to 'clang/lib/Sema/SemaFixItUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud