diff options
| author | Daniel Jasper <djasper@google.com> | 2014-06-23 07:36:18 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-06-23 07:36:18 +0000 |
| commit | 32ccb03871a06985dee32955c83406411e206257 (patch) | |
| tree | 43d78af3ee78f5074c1bc12dd6839d36b3e61782 /clang/unittests/Format/FormatTest.cpp | |
| parent | 8114c1ae17f6df74e39bb827d5208e20de5d848a (diff) | |
| download | bcm5719-llvm-32ccb03871a06985dee32955c83406411e206257.tar.gz bcm5719-llvm-32ccb03871a06985dee32955c83406411e206257.zip | |
clang-format: Fix corner case in pointer/reference detection.
llvm-svn: 211487
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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" |

