summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-12 23:48:49 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-12 23:48:49 +0000
commit2827a7ec6b16e21ef1b447cf42066fba14c21dfc (patch)
tree0cbadea29fbb34fc08dbb8cdd04fe6cec0209074 /clang/unittests/Format/FormatTest.cpp
parent7e31c8f0ae5abb33028567461cbd3915303a49af (diff)
downloadbcm5719-llvm-2827a7ec6b16e21ef1b447cf42066fba14c21dfc.tar.gz
bcm5719-llvm-2827a7ec6b16e21ef1b447cf42066fba14c21dfc.zip
Formatter: Don't insert a space before unary operators after selector names.
Before: [color getRed: &r green: &g blue: &b alpha: &a]; Now: [color getRed:&r green:&g blue:&b alpha:&a]; llvm-svn: 172337
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 8bb217e4833..5ace0f82f91 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -1533,6 +1533,7 @@ TEST_F(FormatTest, FormatObjCMethodExpr) {
verifyFormat("[self stuffWithInt:a ? (e ? f : g) : c];");
verifyFormat("[cond ? obj1 : obj2 methodWithParam:param]");
verifyFormat("[button setAction:@selector(zoomOut:)];");
+ verifyFormat("[color getRed:&r green:&g blue:&b alpha:&a];");
verifyFormat("arr[[self indexForFoo:a]];");
verifyFormat("throw [self errorFor:a];");
OpenPOWER on IntegriCloud