From 139d4a3875a2a2d92b96f895498c99796fba9e95 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Tue, 8 Apr 2014 13:07:41 +0000 Subject: clang-format: Correctly understand arrays of pointers. Before: A a; After: A a; This fixes llvm.org/PR19360. llvm-svn: 205761 --- clang/unittests/Format/FormatTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/unittests/Format/FormatTest.cpp') 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 a;"); verifyIndependentOfContext("A a;"); verifyIndependentOfContext("A a;"); + verifyIndependentOfContext("A a;"); verifyIndependentOfContext( "const char *const p = reinterpret_cast(q);"); verifyIndependentOfContext("A a;"); -- cgit v1.2.3