[libcxx-commits] [PATCH] D128136: [libc++][clang-format] Change the penalties to prefer a newline over breaking after parens

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jun 19 02:46:55 PDT 2022


philnik updated this revision to Diff 438188.
philnik added a comment.

- Increase BreakOpenParnethesis penalty


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D128136

Files:
  libcxx/.clang-format


Index: libcxx/.clang-format
===================================================================
--- libcxx/.clang-format
+++ libcxx/.clang-format
@@ -68,7 +68,9 @@
 NamespaceIndentation: Inner
 PackConstructorInitializers: NextLine
 
-PenaltyIndentedWhitespace: 61
+PenaltyIndentedWhitespace: 1
+PenaltyBreakOpenParenthesis: 300
+PenaltyReturnTypeOnItsOwnLine: 10
 
 Language: Cpp
 Standard: c++20


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128136.438188.patch
Type: text/x-patch
Size: 398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220619/13adac32/attachment.bin>


More information about the libcxx-commits mailing list