[clang] [clang-format] fix incorrectly indents lambda trailing return (PR #94560)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 8 01:13:05 PDT 2024
================
@@ -1457,7 +1457,7 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) {
!Current.isOneOf(tok::colon, tok::comment)) {
return ContinuationIndent;
}
- if (Style.isCpp() && Current.is(tok::arrow) &&
+ if (Style.isCpp() && Current.is(TT_TrailingReturnArrow) &&
----------------
c8ef wrote:
Done.
https://github.com/llvm/llvm-project/pull/94560
More information about the cfe-commits
mailing list