diff options
| author | Daniel Jasper <djasper@google.com> | 2014-04-08 13:07:41 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-04-08 13:07:41 +0000 |
| commit | 139d4a3875a2a2d92b96f895498c99796fba9e95 (patch) | |
| tree | ba162d6d24b1d31d8ff1b1ba62789e97b0c27469 /clang/unittests/Format/FormatTest.cpp | |
| parent | d74cf40386ac321fca0aed6404647667d2ef00f7 (diff) | |
| download | bcm5719-llvm-139d4a3875a2a2d92b96f895498c99796fba9e95.tar.gz bcm5719-llvm-139d4a3875a2a2d92b96f895498c99796fba9e95.zip | |
clang-format: Correctly understand arrays of pointers.
Before:
A<int * []> a;
After:
A<int *[]> a;
This fixes llvm.org/PR19360.
llvm-svn: 205761
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -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 d59ed6c0aff..c7bd44c12d2 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4473,6 +4473,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyIndependentOfContext("A<int *> a;"); verifyIndependentOfContext("A<int **> a;"); verifyIndependentOfContext("A<int *, int *> a;"); + verifyIndependentOfContext("A<int *[]> a;"); verifyIndependentOfContext( "const char *const p = reinterpret_cast<const char *const>(q);"); verifyIndependentOfContext("A<int **, int **> a;"); |

