[PATCH] D75473: [clang-format] parse C# object initialisers

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 3 11:57:48 PST 2020


krasimir added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:1978
+      if (FormatTok->is(tok::l_paren))
+        parseParens();
+
----------------
I don't understand why this is needed, and removing this `if` does not cause any tests to fail.
Please add a test case that will fail if we remove this `if`, or consider removing otherwise.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75473





More information about the cfe-commits mailing list