[PATCH] D115967: [clang-format][NFC] Handle wrapping after => in mustBreakBefore()

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 20 15:32:31 PST 2021


owenpan added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:1955-1957
+    if (Style.isCSharp() && FormatTok->is(TT_FatArrow) &&
+        tryToParseChildBlock())
+      continue;
----------------
peterstys wrote:
> It seems that this block could be removed altogether, because this is already done on lines 1964-165, and it's done regardless if it the language is C# or not.
Lines 1964-1965 only apply to JavaScript because of line 1958, so lines 1955-1957 cannot be removed.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115967/new/

https://reviews.llvm.org/D115967



More information about the cfe-commits mailing list