This is an archive of the discontinued LLVM Phabricator instance.

Fix "warning: fallthrough annotation does not directly precede switch label" in lambdas.
ClosedPublic

Authored by alexfh on Jun 23 2014, 8:23 AM.

Diff Detail

Event Timeline

alexfh updated this revision to Diff 10756.Jun 23 2014, 8:23 AM
alexfh retitled this revision from to Fix "warning: fallthrough annotation does not directly precede switch label" in lambdas..
alexfh updated this object.
alexfh edited the test plan for this revision. (Show Details)
alexfh added a reviewer: rsmith.
alexfh added a subscriber: Unknown Object (MLST).
alexfh updated this revision to Diff 10760.Jun 23 2014, 1:09 PM

Removed debugging code.

rnk added a subscriber: rnk.Jun 23 2014, 1:17 PM
rnk added inline comments.
test/SemaCXX/switch-implicit-fallthrough.cpp
285

Why did this code have to move? Aaron asked about it.

alexfh added inline comments.Jun 23 2014, 1:22 PM
test/SemaCXX/switch-implicit-fallthrough.cpp
285

I've already answered on the list.

Clang seems to stop producing warnings after the function containing errors, so the test with errors should be the last one (or maybe even in a separate file).

alexfh updated this object.Jun 23 2014, 2:30 PM
rsmith accepted this revision.Jun 24 2014, 7:43 AM
rsmith edited edge metadata.

LGTM

If blocks also need a fix, feel free to do that in a later patch :)

This revision is now accepted and ready to land.Jun 24 2014, 7:43 AM
alexfh closed this revision.Jun 24 2014, 8:36 AM