summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-05-28 14:25:15 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-05-30 04:00:54 +0900
commit2581dbcb0f0d328015088d3dcf13119a717bcc3c (patch)
tree505e4f51923fc6b229072a7261be0893b3069172 /.clang-format
parent0fde92d3e485e757063b8fc21757f261f8371b23 (diff)
downloadsystemd-2581dbcb0f0d328015088d3dcf13119a717bcc3c.tar.gz
clang-format: Adjust style of pointers
We gernerally have our pointers aligned to the right. SpaceAroundPointerQualifiers makes sure "const char * const" is formatted nicely.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format18
1 files changed, 10 insertions, 8 deletions
diff --git a/.clang-format b/.clang-format
index 6aa4e6a451..fe360a648b 100644
--- a/.clang-format
+++ b/.clang-format
@@ -27,22 +27,22 @@
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignEscapedNewlines: Left
-AlignOperands: false
+AlignOperands: false
AllowShortFunctionsOnASingleLine: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
- AfterEnum: false
+ AfterEnum: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBraces: Custom
-BreakInheritanceList: BeforeComma
BreakBeforeTernaryOperators: false
+BreakInheritanceList: BeforeComma
BreakStringLiterals: false
-ColumnLimit: 109
+ColumnLimit: 109
CompactNamespaces: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 8
@@ -107,7 +107,7 @@ ForEachMacros:
- STRV_FOREACH_BACKWARDS
- STRV_FOREACH_PAIR
IndentPPDirectives: AfterHash
-IndentWidth: 8
+IndentWidth: 8
IndentWrappedFunctionNames: true
MaxEmptyLinesToKeep: 2
PenaltyBreakAssignment: 65
@@ -117,8 +117,10 @@ PenaltyBreakFirstLessLess: 50
PenaltyBreakString: 0
PenaltyExcessCharacter: 10
PenaltyReturnTypeOnItsOwnLine: 100
+PointerAlignment: Right
SpaceAfterCStyleCast: true
+SpaceAroundPointerQualifiers: Both
SpaceBeforeParens: ControlStatementsExceptForEachMacros
-SpacesInAngles: true
-TabWidth: 8
-UseCRLF: false
+SpacesInAngles: true
+TabWidth: 8
+UseCRLF: false