Formatter: + and - after { are unary operators.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172301 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index 061ac57..9106a1f 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -956,6 +956,9 @@
"case -1:\n"
" break;\n"
"}");
+
+ verifyFormat("const NSPoint kBrowserFrameViewPatternOffset = { -5, +3 };");
+ verifyFormat("const NSPoint kBrowserFrameViewPatternOffset = { +5, -3 };");
}
TEST_F(FormatTest, UndestandsOverloadedOperators) {