diff options
| author | Daniel Jasper <djasper@google.com> | 2014-02-11 10:16:55 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-02-11 10:16:55 +0000 |
| commit | 1067ab0a1ac51d56b5705a7aeaf223ac2f960eec (patch) | |
| tree | c9bb73c44f1472d0f20f1f75e7774ba8579f1573 /clang/unittests | |
| parent | a0407740c39dd139fed453439a3c570180aae9e7 (diff) | |
| download | bcm5719-llvm-1067ab0a1ac51d56b5705a7aeaf223ac2f960eec.tar.gz bcm5719-llvm-1067ab0a1ac51d56b5705a7aeaf223ac2f960eec.zip | |
clang-format: Support lambdas with namespace-qualified return types.
E.g.:
Foo([]()->std::vector<int> { return { 2 }; }());
llvm-svn: 201139
Diffstat (limited to 'clang/unittests')
| -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 3778401648d..a79379963b1 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -7956,6 +7956,7 @@ TEST_F(FormatTest, FormatsLambdas) { // Lambdas with return types. verifyFormat("int c = []()->int { return 2; }();\n"); verifyFormat("int c = []()->vector<int> { return { 2 }; }();\n"); + verifyFormat("Foo([]()->std::vector<int> { return { 2 }; }());"); // Not lambdas. verifyFormat("constexpr char hello[]{ \"hello\" };"); |

