[clang-format] Add style option AllowShortLambdasOnASingleLine
authorRonald Wampler <rdwampler@gmail.com>
Tue, 26 Mar 2019 20:18:14 +0000 (20:18 +0000)
committerRonald Wampler <rdwampler@gmail.com>
Tue, 26 Mar 2019 20:18:14 +0000 (20:18 +0000)
commita83e2dbb1e1904dda43869597e12f9af20e0d1c8
tree737a9c39be5ba1c5a925358bb525756b58a185ba
parent02e96648d75bcd04ad8b4a9e976c8ff8d1a9419e
[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/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp