clang-format: Merge labels and subsequent semicolons.
authorDaniel Jasper <djasper@google.com>
Wed, 6 May 2015 15:19:47 +0000 (15:19 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 6 May 2015 15:19:47 +0000 (15:19 +0000)
commit1fe0d5ca59ab2e23fc5b9755d83268f649080c61
tree0bb4b27b5629d8503a7166fbff43a38e9cef87ba
parent112b50e6b627f4780656a4f62f446848e46197b9
clang-format: Merge labels and subsequent semicolons.

E.g.:

  default:;

This can be used to get around restrictions as to what can follow a
label. It fixes llvm.org/PR19648.

llvm-svn: 236604
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp