[PATCH] D102706: [clang-format] Add new LambdaBodyIndentation option

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 18 11:52:17 PDT 2021


HazardyKnusperkeks added a comment.

Maybe a bit more test cases with smaller lambdas? Or without the outer parenthesis?



================
Comment at: clang/include/clang/Format/Format.h:2456
+  enum LambdaBodyIndentationKind : unsigned char {
+    /// Align lambda body relative to the lambda signature. This is the default.
+    LBI_Signature,
----------------
I think you should add examples, because for me it is not 100% what's the difference is.


================
Comment at: clang/include/clang/Format/Format.h:2462
+
+  LambdaBodyIndentationKind LambdaBodyIndentation;
+
----------------
Here should also a comment be added.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102706/new/

https://reviews.llvm.org/D102706



More information about the cfe-commits mailing list