[PATCH] Fix "warning: fallthrough annotation does not directly precede switch label" in lambdas.

Reid Kleckner rnk at google.com
Mon Jun 23 13:17:58 PDT 2014

Comment at: test/SemaCXX/switch-implicit-fallthrough.cpp:285
@@ +284,3 @@
+int fallthrough_targets(int n) {
+  [[clang::fallthrough]]; // expected-error{{fallthrough annotation is outside switch statement}}
Why did this code have to move?  Aaron asked about it.


More information about the cfe-commits mailing list