diff options
| author | Daniel Jasper <djasper@google.com> | 2015-09-21 09:50:01 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2015-09-21 09:50:01 +0000 |
| commit | 368369b4536538ea1665135de3d2e446e40d8efc (patch) | |
| tree | 8c4407bee8ced7e8c9c9ac13071e2440efb7548b /clang/unittests | |
| parent | f41a631b50f4c305da3b7033eb033cc129ead082 (diff) | |
| download | bcm5719-llvm-368369b4536538ea1665135de3d2e446e40d8efc.tar.gz bcm5719-llvm-368369b4536538ea1665135de3d2e446e40d8efc.zip | |
clang-format: Fix merging short case labels with comments.
This fixes llvm.org/PR24877.
Patch by Benjamin Daly, thank you!
llvm-svn: 248145
Diffstat (limited to 'clang/unittests')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index cda8ce4510a..e392cf880c2 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -756,6 +756,9 @@ TEST_F(FormatTest, ShortCaseLabels) { "case 7:\n" " // comment\n" " return;\n" + "case 8:\n" + " x = 8; // comment\n" + " break;\n" "default: y = 1; break;\n" "}", Style); |

