commit | 5999f7634e80daf849a036aa830fc0e4b1e03555 | [log] [tgz] |
---|---|---|
author | Daniel Jasper <djasper@google.com> | Tue Apr 09 17:46:55 2013 +0000 |
committer | Daniel Jasper <djasper@google.com> | Tue Apr 09 17:46:55 2013 +0000 |
tree | c832dbaafb1e26aba4b3a867153765367bcd972c | |
parent | 99b0e14691b61d8db4f1d239a11615957071fb45 [diff] |
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
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index cb28a4f..4585ac2 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp
@@ -432,6 +432,7 @@ " // Do nothing.\n" "}"); verifyFormat("switch (x) {\n" + "// comment\n" "// if 1, do f()\n" "case 1:\n" " f();\n"