diff options
| author | Daniel Jasper <djasper@google.com> | 2016-06-13 07:49:35 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2016-06-13 07:49:35 +0000 |
| commit | 215616691a21ced6ab8cc9fe899a4ae8c46dd0e2 (patch) | |
| tree | 7f06d41cd59504a99a9b29b8fe1dd314c159ad1e /clang/unittests/Format | |
| parent | 43e4d3a05be7e797045e36091ab354face31800f (diff) | |
| download | bcm5719-llvm-215616691a21ced6ab8cc9fe899a4ae8c46dd0e2.tar.gz bcm5719-llvm-215616691a21ced6ab8cc9fe899a4ae8c46dd0e2.zip | |
clang-format: Fix incorrect function type detection.
Before:
returnsFunction (¶m1, ¶m2)(param);
After:
returnsFunction(¶m1, ¶m2)(param);
llvm-svn: 272538
Diffstat (limited to 'clang/unittests/Format')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
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(¶m1, ¶m2)(param);"); } TEST_F(FormatTest, FormatsPointersToArrayTypes) { |

