summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/UnwrappedLineParser.cpp
diff options
context:
space:
mode:
authorRonald Wampler <rdwampler@gmail.com>2019-03-26 20:18:14 +0000
committerRonald Wampler <rdwampler@gmail.com>2019-03-26 20:18:14 +0000
commita83e2dbb1e1904dda43869597e12f9af20e0d1c8 (patch)
tree737a9c39be5ba1c5a925358bb525756b58a185ba /clang/lib/Format/UnwrappedLineParser.cpp
parent02e96648d75bcd04ad8b4a9e976c8ff8d1a9419e (diff)
downloadbcm5719-llvm-a83e2dbb1e1904dda43869597e12f9af20e0d1c8.tar.gz
bcm5719-llvm-a83e2dbb1e1904dda43869597e12f9af20e0d1c8.zip
[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
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.cpp')
-rw-r--r--clang/lib/Format/UnwrappedLineParser.cpp1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud