diff options
author | Daniel Jasper <djasper@google.com> | 2013-05-03 14:50:50 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-05-03 14:50:50 +0000 |
commit | 454cb70f9470dc37d0c0646012877d64fb1e73d7 (patch) | |
tree | b0c6f2fcc7e3fef44c3dc266349fcf25090cdae4 /lib/Format | |
parent | 16a69ef481f4580c571b6c693a5d3dd64ea56b53 (diff) |
Add space between ; and (.
Before: for (int i = 0;(i < 10); ++i) {}
After: for (int i = 0; (i < 10); ++i) {}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format')
-rw-r--r-- | lib/Format/TokenAnnotator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/TokenAnnotator.cpp b/lib/Format/TokenAnnotator.cpp index 6fa79813fa..185a45d43d 100644 --- a/lib/Format/TokenAnnotator.cpp +++ b/lib/Format/TokenAnnotator.cpp @@ -1048,7 +1048,7 @@ bool TokenAnnotator::spaceRequiredBetween(const AnnotatedLine &Line, return Line.Type == LT_ObjCDecl || Left.isOneOf(tok::kw_if, tok::kw_for, tok::kw_while, tok::kw_switch, tok::kw_return, tok::kw_catch, tok::kw_new, - tok::kw_delete); + tok::kw_delete, tok::semi); } if (Left.is(tok::at) && Right.FormatTok.Tok.getObjCKeywordID() != tok::objc_not_keyword) |