[PATCH] D44609: [Clang-Format] New option BreakBeforeLambdaBody to manage lambda line break inside function parameter call
Manuel Klimek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 3 00:09:26 PDT 2018
klimek added inline comments.
Herald added a subscriber: acoomans.
================
Comment at: lib/Format/TokenAnnotator.cpp:627
}
+ if(Style.BraceWrapping.BeforeLambdaBody && Current->is(TT_LambdaLSquare)) {
+ ++Left->BlockParameterCount;
----------------
Why do we want to increase the parameter count here? Specifically, why is it not enough to || this condition to the first is in the function?
Repository:
rC Clang
https://reviews.llvm.org/D44609
More information about the cfe-commits
mailing list