summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-04-08 13:07:41 +0000
committerDaniel Jasper <djasper@google.com>2014-04-08 13:07:41 +0000
commit139d4a3875a2a2d92b96f895498c99796fba9e95 (patch)
treeba162d6d24b1d31d8ff1b1ba62789e97b0c27469 /clang/unittests/Format/FormatTest.cpp
parentd74cf40386ac321fca0aed6404647667d2ef00f7 (diff)
downloadbcm5719-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.cpp1
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;");
OpenPOWER on IntegriCloud