[PATCH] D115967: [clang-format][NFC] Handle wrapping after => in mustBreakBefore()
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 19 23:15:22 PST 2021
owenpan marked an inline comment as done.
owenpan added inline comments.
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:1641
case tok::equal:
- // Fat arrows (=>) have tok::TokenKind tok::equal but TokenType
- // TT_FatArrow. They always start an expression or a child block if
- // followed by a curly brace.
if (FormatTok->is(TT_FatArrow)) {
+ tryToParseCSharpLambda();
----------------
owenpan wrote:
> HazardyKnusperkeks wrote:
> > Should we add the isCSharp check?
> No. It was not there before, and adding it would fail several JavaScript test cases.
> Should we add the isCSharp check?
Added checking for either JavaScript or C#.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115967/new/
https://reviews.llvm.org/D115967
More information about the cfe-commits
mailing list