[PATCH] D109557: Adds a BreakBeforeClosingParen option

Cameron Mulhern via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 16 09:43:28 PDT 2021


csmulhern marked an inline comment as done.
csmulhern added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:22410
+               ");",
+               Style);
+}
----------------
MyDeveloperDay wrote:
> Can you assert the cases it won't do (given your description it seem like it would do it for all before ) cases)
> 
> ```
> int a = (int
> ) b;
> ```
> 
> I'm pretty sure it won't but lets me explicit in the tests
> 
> ```
> return (true
> );
> ```
> 
> ```
> void foo(
> );
> ```
> 
> etc..
> 
Done.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109557



More information about the cfe-commits mailing list