[clang] [clang-format] fix incorrectly indents lambda trailing return (PR #94560)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 6 18:19:22 PDT 2024


================
@@ -1457,6 +1457,11 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) {
       !Current.isOneOf(tok::colon, tok::comment)) {
     return ContinuationIndent;
   }
+  if (Style.isCpp() && Current.is(tok::arrow) &&
----------------
c8ef wrote:

Exactly, thanks for your suggestions!

https://github.com/llvm/llvm-project/pull/94560


More information about the cfe-commits mailing list