diff options
author | Daniel Jasper <djasper@google.com> | 2013-03-12 12:26:55 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-03-12 12:26:55 +0000 |
commit | 4ba9bfd89d0ceb4eae161a4a21dd8e50be752754 (patch) | |
tree | 6863ccfe53bc22386faee73d74700eeefc8622d2 /unittests/Format/FormatTest.cpp | |
parent | e8a1efcafbea9a40fe12454d27baa30488475862 (diff) |
Remove bad space after "default".
Before:
switch (x) {
default : {}
}
After:
switch (x) {
default: {}
}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 0ac3c10dc7..caf291fc9d 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -423,6 +423,10 @@ TEST_F(FormatTest, FormatsSwitchStatement) { "}"); verifyFormat("switch (test)\n" " ;"); + verifyFormat("switch (x) {\n" + "default: {\n" + " // Do nothing.\n" + "}"); verifyGoogleFormat("switch (x) {\n" " case 1:\n" |