]> granicus.if.org Git - clang/commit
[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)
commitba1471ee7533f76741d2e4718cd83fc64313dc21
tree1f20555c73e3c1b9bb532901da31cd6cf0f04de5
parentb24013c5f92a30cc8af8091c8d455a78c47ecc67
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342708 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/UnwrappedLineFormatter.cpp
unittests/Format/FormatTest.cpp