[PATCH] D115738: [clang-format] Code following C# Lambda Expressions has wrong formatting
Jonathan B Coe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 14 14:43:09 PST 2021
jbcoe added inline comments.
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:2007
+ if (FormatTok->is(tok::l_brace)) {
+ if (Style.isCSharp() && Style.BraceWrapping.AfterFunction == true) {
+ FormatTok->MustBreakBefore = true;
----------------
I think this check for `Style.isCSharp()` is redundant as it's already checked above.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115738/new/
https://reviews.llvm.org/D115738
More information about the cfe-commits
mailing list