summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-12-18 07:08:51 +0000
committerDaniel Jasper <djasper@google.com>2013-12-18 07:08:51 +0000
commit3460b2546c1b76f0772d2b3f8edbea0b8aa7f47b (patch)
tree155f07f979d9f95e87af8e8b8e92991750837ce6 /clang/unittests/Format/FormatTest.cpp
parent53eaea0104d1931e73ee782d1780ac2310759747 (diff)
downloadbcm5719-llvm-3460b2546c1b76f0772d2b3f8edbea0b8aa7f47b.tar.gz
bcm5719-llvm-3460b2546c1b76f0772d2b3f8edbea0b8aa7f47b.zip
clang-format: Fix ObjC method expr in binary expressions.
Before: bool a = ([aaaaaaaa aaaaa] == aaaaaaaaaaaaaaaaa || [aaaaaaaa aaaaa] == aaaaaaaaaaaaaaaaaaaa); After: bool a = ([aaaaaaaa aaaaa] == aaaaaaaaaaaaaaaaa || [aaaaaaaa aaaaa] == aaaaaaaaaaaaaaaaaaaa); This fixes llvm.org/PR18271. llvm-svn: 197552
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index b6c96041469..436a1f6d52b 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -5707,6 +5707,8 @@ TEST_F(FormatTest, FormatObjCMethodExpr) {
verifyFormat("[self // break\n"
" a:a\n"
" aaa:aaa];");
+ verifyFormat("bool a = ([aaaaaaaa aaaaa] == aaaaaaaaaaaaaaaaa ||\n"
+ " [aaaaaaaa aaaaa] == aaaaaaaaaaaaaaaaaaaa);");
}
TEST_F(FormatTest, ObjCAt) {
OpenPOWER on IntegriCloud