summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-06-13 07:49:35 +0000
committerDaniel Jasper <djasper@google.com>2016-06-13 07:49:35 +0000
commit215616691a21ced6ab8cc9fe899a4ae8c46dd0e2 (patch)
tree7f06d41cd59504a99a9b29b8fe1dd314c159ad1e /clang/unittests/Format
parent43e4d3a05be7e797045e36091ab354face31800f (diff)
downloadbcm5719-llvm-215616691a21ced6ab8cc9fe899a4ae8c46dd0e2.tar.gz
bcm5719-llvm-215616691a21ced6ab8cc9fe899a4ae8c46dd0e2.zip
clang-format: Fix incorrect function type detection.
Before: returnsFunction (&param1, &param2)(param); After: returnsFunction(&param1, &param2)(param); llvm-svn: 272538
Diffstat (limited to 'clang/unittests/Format')
-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 d82770ba683..3b580b5ae24 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -6097,6 +6097,7 @@ TEST_F(FormatTest, FormatsFunctionTypes) {
verifyFormat("some_var = function(*some_pointer_var)[0];");
verifyFormat("void f() { function(*some_pointer_var)[0] = 10; }");
verifyFormat("int x = f(&h)();");
+ verifyFormat("returnsFunction(&param1, &param2)(param);");
}
TEST_F(FormatTest, FormatsPointersToArrayTypes) {
OpenPOWER on IntegriCloud