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 /unittests/Format/FormatTest.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 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 061ac5710d..9106a1fc7f 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -956,6 +956,9 @@ TEST_F(FormatTest, UnderstandsUnaryOperators) { "case -1:\n" " break;\n" "}"); + + verifyFormat("const NSPoint kBrowserFrameViewPatternOffset = { -5, +3 };"); + verifyFormat("const NSPoint kBrowserFrameViewPatternOffset = { +5, -3 };"); } TEST_F(FormatTest, UndestandsOverloadedOperators) { |