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 | 181046566cbcc0a2e0f43cbb08ab4896b7a2a901 (patch) | |
| tree | 41ba683066b607c14192e055dc6b16283b36aa69 /clang/lib/Format | |
| parent | e2228a7048be56ac44c93613ea19c6ec82a87306 (diff) | |
| download | bcm5719-llvm-181046566cbcc0a2e0f43cbb08ab4896b7a2a901.tar.gz bcm5719-llvm-181046566cbcc0a2e0f43cbb08ab4896b7a2a901.zip | |
Remove bad space after "default".
Before:
switch (x) {
default : {}
}
After:
switch (x) {
default: {}
}
llvm-svn: 176861
Diffstat (limited to 'clang/lib/Format')
| -rw-r--r-- | clang/lib/Format/TokenAnnotator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index f642a703091..77815b0406b 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/lib/Format/TokenAnnotator.cpp @@ -1042,7 +1042,8 @@ bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine &Line, if (Tok.Type == TT_OverloadedOperatorLParen) return false; if (Tok.is(tok::colon)) - return Line.First.isNot(tok::kw_case) && !Tok.Children.empty() && + return Line.First.isNot(tok::kw_case) && + Line.First.isNot(tok::kw_default) && !Tok.Children.empty() && Tok.Type != TT_ObjCMethodExpr; if (Tok.is(tok::l_paren) && !Tok.Children.empty() && Tok.Children[0].Type == TT_PointerOrReference && |

