[PATCH] D115967: [clang-format][NFC] Handle wrapping after => in mustBreakBefore()
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 17 13:17:32 PST 2021
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();
----------------
HazardyKnusperkeks wrote:
> Should we add the isCSharp check?
No. It was not there before, and adding it would fail several JavaScript test cases.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115967/new/
https://reviews.llvm.org/D115967
More information about the cfe-commits
mailing list