[PATCH] D116170: [clang-format] Add penalty for breaking after '('

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 28 07:22:25 PST 2021


MyDeveloperDay added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:18515
 
+TEST_F(FormatTest, BreakPenaltyAfterLParen) {
+	FormatStyle Style = getLLVMStyle();
----------------
1) fix the formatting
2) add a default case which shows how the bracket will be without setting it to 100
3) show other uses of '(' like casts, declarations etc..


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116170



More information about the cfe-commits mailing list