summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-12 05:41:23 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-12 05:41:23 +0000
commit63a54eb76611740792a629c83c803882641182b4 (patch)
tree37abb579c71f6c74e2a7f457729c0fd15e4fe5e8 /clang/unittests/Format/FormatTest.cpp
parent1a100cd78f70f13fe20d0e4a65c8d3d042014923 (diff)
downloadbcm5719-llvm-63a54eb76611740792a629c83c803882641182b4.tar.gz
bcm5719-llvm-63a54eb76611740792a629c83c803882641182b4.zip
Formatter: + and - after { are unary operators.
llvm-svn: 172301
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 061ac5710d6..9106a1fc7f3 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud