From 32ccb03871a06985dee32955c83406411e206257 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Mon, 23 Jun 2014 07:36:18 +0000 Subject: clang-format: Fix corner case in pointer/reference detection. llvm-svn: 211487 --- clang/unittests/Format/FormatTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/unittests/Format/FormatTest.cpp') diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 13954fa6f86..968e13b3feb 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4844,6 +4844,8 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { // FIXME: Is there a way to make this work? // verifyIndependentOfContext("MACRO(A *a);"); + verifyFormat("DatumHandle const *operator->() const { return input_; }"); + EXPECT_EQ("#define OP(x) \\\n" " ostream &operator<<(ostream &s, const A &a) { \\\n" " return s << a.DebugString(); \\\n" -- cgit v1.2.3