+2016-04-13 Marek Polacek <polacek@redhat.com>
+
+ PR c++/70639
+ * c-indentation.c (should_warn_for_misleading_indentation): Bail out
+ for switch statements, too.
+
2016-03-28 Jason Merrill <jason@redhat.com>
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
if (line_table->seen_line_directive)
return false;
- /* We can't usefully warn about do-while statements since the bodies of these
- statements are always explicitly delimited at both ends, so control flow is
- quite obvious. */
- if (guard_tinfo.keyword == RID_DO)
+ /* We can't usefully warn about do-while and switch statements since the
+ bodies of these statements are always explicitly delimited at both ends,
+ so control flow is quite obvious. */
+ if (guard_tinfo.keyword == RID_DO
+ || guard_tinfo.keyword == RID_SWITCH)
return false;
/* If the token following the body is a close brace or an "else"
+2016-04-13 Marek Polacek <polacek@redhat.com>
+
+ PR c++/70639
+ * c-c++-common/Wmisleading-indentation-4.c: New test.
+
2016-04-13 Marek Polacek <polacek@redhat.com>
PR c/70436