diff options
| author | Daniel Jasper <djasper@google.com> | 2014-05-08 08:50:10 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-05-08 08:50:10 +0000 |
| commit | ea2d042f897b082c6f270cf9fbda3be2937cecc0 (patch) | |
| tree | ab55323c93028585fb3eaabca3913ec59bf321cd /clang/unittests/Format/FormatTest.cpp | |
| parent | a0e051e004d7fc05a64314c8cb82d9bcc5c45bf6 (diff) | |
| download | bcm5719-llvm-ea2d042f897b082c6f270cf9fbda3be2937cecc0.tar.gz bcm5719-llvm-ea2d042f897b082c6f270cf9fbda3be2937cecc0.zip | |
clang-format: Fix binary operator detection before lambdas.
Before:
bool foo = true&& [] { return false; }();
After:
bool foo = true && [] { return false; }();
llvm-svn: 208288
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 1e9251d524b..3ec1ea50848 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4612,6 +4612,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyIndependentOfContext("void f(int *a = d * e, int *b = c * d);"); verifyFormat("for (char **a = b; *a; ++a) {\n}"); verifyFormat("for (; a && b;) {\n}"); + verifyFormat("bool foo = true && [] { return false; }();"); verifyFormat( "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" |

