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

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 17 12:47:06 PST 2021


HazardyKnusperkeks 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();
----------------
Should we add the isCSharp check?


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