From 4ac7de7199d431b47c6c71e6529951bb284dcb7f Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Wed, 11 Jun 2014 07:35:16 +0000 Subject: clang-format: Fix pointer/reference detection after decltype. Before: [](const decltype(*a) & value) {} After: [](const decltype(*a)& value) {} llvm-svn: 210643 --- 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 a923e1a9f82..f474c42144d 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4740,6 +4740,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyFormat("auto a = [](int **&, int ***) {};"); verifyFormat("auto PointerBinding = [](const char *S) {};"); verifyFormat("typedef typeof(int(int, int)) *MyFunc;"); + verifyFormat("[](const decltype(*a) &value) {}"); verifyIndependentOfContext("typedef void (*f)(int *a);"); verifyIndependentOfContext("int i{a * b};"); verifyIndependentOfContext("aaa && aaa->f();"); -- cgit v1.2.3