[PATCH] D115738: [clang-format] Fix formatting of the code that follows C# Lambda Expressions

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 16 03:32:46 PST 2021


owenpan accepted this revision.
owenpan added a comment.

Thanks! LGTM other than the extraneous braces on lines 1859-1861. (See https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements.)



================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:1859
+  nextToken();
+  if (FormatTok->isNot(tok::l_brace)) {
+    return false;
----------------
Remove braces.


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

https://reviews.llvm.org/D115738



More information about the cfe-commits mailing list