[clang-format] Do not merge short case labels if followed by a block.
authorOwen Pan <owenpiano@gmail.com>
Fri, 21 Sep 2018 03:46:36 +0000 (03:46 +0000)
committerOwen Pan <owenpiano@gmail.com>
Fri, 21 Sep 2018 03:46:36 +0000 (03:46 +0000)
commit9da65a3ab009ca2f3b55d7a95d266554fec88d31
tree89f87e5d4813830624b9a8c052e2bbe31438f32a
parent1dcce6c92602ef5f2ba69f7f0a2ad7316754216b
[clang-format] Do not merge short case labels if followed by a block.

Do not allow short case labels on a single line if the label is followed by a
left brace.

Fixes PR38926.

llvm-svn: 342708
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/unittests/Format/FormatTest.cpp