clang-format: Support lambdas with namespace-qualified return types.
E.g.:
Foo([]()->std::vector<int> { return { 2 }; }());
llvm-svn: 201139
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 3778401..a793799 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -7956,6 +7956,7 @@
// 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\" };");