[PATCH] D57687: [clang-format] Add style option AllowShortLambdasOnASingleLine
Ronald Wampler via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 7 13:01:36 PST 2019
rdwampler updated this revision to Diff 185848.
rdwampler added a comment.
Update to include an option `Inline` to only put short lambda on a single line if used as an argument. See the following code style guide from catboost: ps://github.com/catboost/catboost/blob/master/CPP_STYLE_GUIDE.md#lambda-functions
I'm not sure if `Inline` is the best name. I welcome suggestions.
Thanks!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57687/new/
https://reviews.llvm.org/D57687
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57687.185848.patch
Type: text/x-patch
Size: 10648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190207/dfb252dc/attachment.bin>
More information about the cfe-commits
mailing list