diff options
author | Daniel Jasper <djasper@google.com> | 2015-12-23 18:01:29 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-12-23 18:01:29 +0000 |
commit | 95516cd380434cbdca733d912afd22525ecb0ec5 (patch) | |
tree | 0d629bfc868eb62ad89443e910b379723137324c /clang/unittests/Format/FormatTest.cpp | |
parent | 2fbfb25ad6fb25601481d8865488ac8ea639bed5 (diff) | |
download | bcm5719-llvm-95516cd380434cbdca733d912afd22525ecb0ec5.tar.gz bcm5719-llvm-95516cd380434cbdca733d912afd22525ecb0ec5.zip |
clang-format: Fix incorrect pointer detection.
Before:
return * this += 1;
After:
return *this += 1;
llvm-svn: 256342
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 6245f8c0434..ac7bd5abf71 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -5613,6 +5613,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { Left.PointerAlignment = FormatStyle::PAS_Left; verifyFormat("x = *a(x) = *a(y);", Left); verifyFormat("for (;; * = b) {\n}", Left); + verifyFormat("return *this += 1;", Left); verifyIndependentOfContext("a = *(x + y);"); verifyIndependentOfContext("a = &(x + y);"); |