From a83e2dbb1e1904dda43869597e12f9af20e0d1c8 Mon Sep 17 00:00:00 2001 From: Ronald Wampler Date: Tue, 26 Mar 2019 20:18:14 +0000 Subject: [clang-format] Add style option AllowShortLambdasOnASingleLine Summary: This option `AllowShortLambdasOnASingleLine` similar to the other `AllowShort*` options, but applied to C++ lambdas. Reviewers: djasper, klimek Reviewed By: klimek Subscribers: MyDeveloperDay, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D57687 llvm-svn: 357027 --- clang/lib/Format/UnwrappedLineParser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Format/UnwrappedLineParser.cpp') diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index 5c7ab1240c4..010b086587e 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/lib/Format/UnwrappedLineParser.cpp @@ -1475,6 +1475,7 @@ bool UnwrappedLineParser::tryToParseLambda() { return true; } } + FormatTok->Type = TT_LambdaLBrace; LSquare.Type = TT_LambdaLSquare; parseChildBlock(); return true; -- cgit v1.2.3