summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-04-23 13:58:40 +0000
committerDaniel Jasper <djasper@google.com>2015-04-23 13:58:40 +0000
commit0faa9136faaec5455f7d0039d4deb42debd0756a (patch)
tree56b824886b0287b58db9ac90ac589bfa729538cf /clang/unittests/Format/FormatTest.cpp
parent5372c72a427ee8770b5876a949f381f8f1ca9bdc (diff)
downloadbcm5719-llvm-0faa9136faaec5455f7d0039d4deb42debd0756a.tar.gz
bcm5719-llvm-0faa9136faaec5455f7d0039d4deb42debd0756a.zip
clang-format: Properly detect variable declarations with ObjC.
Before: LoooooooooooooooooooooooooooooooooooooooongType LoooooooooooooooooooooooooooooooooooooongVariable([A a]); After: LoooooooooooooooooooooooooooooooooooooooongType LoooooooooooooooooooooooooooooooooooooongVariable([A a]); llvm-svn: 235599
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 0f2545105ee..6e2b9505238 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -5698,6 +5698,8 @@ TEST_F(FormatTest, BreaksLongVariableDeclarations) {
" LoooooooooooooooooooooooooooooooooooooooongVariable(a);");
verifyFormat("LoooooooooooooooooooooooooooooooooooooooongType\n"
" LoooooooooooooooooooooooooooooooooooooooongVariable({});");
+ verifyFormat("LoooooooooooooooooooooooooooooooooooooooongType\n"
+ " LoooooooooooooooooooooooooooooooooooooongVariable([A a]);");
}
TEST_F(FormatTest, BreaksLongDeclarations) {
OpenPOWER on IntegriCloud