From 5999f7634e80daf849a036aa830fc0e4b1e03555 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Tue, 9 Apr 2013 17:46:55 +0000 Subject: Fix comments before labels. Before: switch (...) { // a // b // c case first: break; } After: switch (...) { // a // b // c case first: break; } git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179107 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Format/FormatTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'unittests') diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index cb28a4ff78..4585ac2ab9 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -432,6 +432,7 @@ TEST_F(FormatTest, FormatsSwitchStatement) { " // Do nothing.\n" "}"); verifyFormat("switch (x) {\n" + "// comment\n" "// if 1, do f()\n" "case 1:\n" " f();\n" -- cgit v1.2.3-18-g5258