diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-01-12 05:41:23 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-12 05:41:23 +0000 |
commit | cc191d1980101bba47d3d67acf782890076fa5c3 (patch) | |
tree | 6061ce5011ff544a7c3c8409a7b1e27aa7d4a8f1 /lib/Format/Format.cpp | |
parent | 1a4191d0697098c424646654784399b839f87bc4 (diff) |
Formatter: + and - after { are unary operators.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r-- | lib/Format/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 77fba1fbf1..5140639d00 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -994,7 +994,7 @@ private: Tok.Parent->is(tok::comma) || Tok.Parent->is(tok::l_square) || Tok.Parent->is(tok::question) || Tok.Parent->is(tok::colon) || Tok.Parent->is(tok::kw_return) || Tok.Parent->is(tok::kw_case) || - Tok.Parent->is(tok::at)) + Tok.Parent->is(tok::at) || Tok.Parent->is(tok::l_brace)) return TT_UnaryOperator; // There can't be to consecutive binary operators. |