[PATCH] D129926: [clang-format] Handle constructor invocations after new operator in C# correct

Danil Sidoruk via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 14 05:19:22 PDT 2022


eoanermine added a comment.

In D129926#3705342 <https://reviews.llvm.org/D129926#3705342>, @MyDeveloperDay wrote:

> Can we land this for you?

Yes



================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:2869-2870
+      // Handle array initialization syntax
       if (FormatTok->is(tok::l_brace))
         parseBracedList();
 
----------------
Before the patch, this code mistook lambdas in a constructor call for an initialization list.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129926



More information about the cfe-commits mailing list