Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109920308
D26978.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
974 B
Referenced Files
None
Subscribers
None
D26978.diff
View Options
Index: head/.clang-format
===================================================================
--- head/.clang-format
+++ head/.clang-format
@@ -8,6 +8,7 @@
AlignEscapedNewlines: Left
AlignOperands: false
AlignTrailingComments: true
+AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
@@ -24,7 +25,20 @@
BreakBeforeTernaryOperators: false
# TODO: BreakStringLiterals can cause very strange formatting so turn it off?
BreakStringLiterals: false
-PenaltyBreakBeforeFirstCallParameter: 1000
+# Prefer:
+# some_var = function(arg1,
+# arg2)
+# over:
+# some_var =
+# function(arg1, arg2)
+PenaltyBreakAssignment: 100
+# Prefer:
+# some_long_function(arg1, arg2
+# arg3)
+# over:
+# some_long_function(
+# arg1, arg2, arg3)
+PenaltyBreakBeforeFirstCallParameter: 100
CompactNamespaces: true
DerivePointerAlignment: false
DisableFormat: false
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 12, 5:57 AM (17 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16606902
Default Alt Text
D26978.diff (974 B)
Attached To
Mode
D26978: clang-format: Avoid breaking after the opening paren of function definitions
Attached
Detach File
Event Timeline
Log In to Comment