summaryrefslogtreecommitdiff
path: root/unittests/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-02-11 10:16:55 +0000
committerDaniel Jasper <djasper@google.com>2014-02-11 10:16:55 +0000
commit44e8e234c1eb38842a3ecfd01d1bc48419c88fad (patch)
tree45a3c0c91a2adce61f3c6316933d0a854d23a3a1 /unittests/Format
parent36dc461d9098ab81fa6c4945a079f23516080e6f (diff)
downloadclang-44e8e234c1eb38842a3ecfd01d1bc48419c88fad.tar.gz
clang-format: Support lambdas with namespace-qualified return types.
E.g.: Foo([]()->std::vector<int> { return { 2 }; }()); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format')
-rw-r--r--unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index 3778401648..a79379963b 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/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\" };");