Skip to content

Commit 0c4cdb9

Browse files
committed
Update clang-format config to fit style guidelines
1 parent 4edcb44 commit 0c4cdb9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/.clang-format

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
Language: Cpp
33
AccessModifierOffset: -2
4-
AlignAfterOpenBracket: Align
4+
AlignAfterOpenBracket: DontAlign
55
AlignConsecutiveAssignments: false
66
AlignConsecutiveDeclarations: false
77
AlignEscapedNewlinesLeft: false
88
AlignOperands: true
99
AlignTrailingComments: true
1010
AllowAllParametersOfDeclarationOnNextLine: true
11-
AllowShortBlocksOnASingleLine: false
12-
AllowShortCaseLabelsOnASingleLine: false
11+
AllowShortBlocksOnASingleLine: true
12+
AllowShortCaseLabelsOnASingleLine: true
1313
AllowShortFunctionsOnASingleLine: Inline
14-
AllowShortIfStatementsOnASingleLine: false
14+
AllowShortIfStatementsOnASingleLine: true
1515
AllowShortLoopsOnASingleLine: false
1616
AlwaysBreakAfterDefinitionReturnType: None
1717
AlwaysBreakAfterReturnType: None
@@ -35,7 +35,7 @@ BreakBeforeBinaryOperators: None
3535
BreakBeforeBraces: Custom
3636
BreakBeforeTernaryOperators: false
3737
BreakConstructorInitializersBeforeComma: false
38-
ColumnLimit: 100
38+
ColumnLimit: 120
3939
CommentPragmas: '^ (IWYU pragma:|NOLINT)'
4040
ConstructorInitializerAllOnOneLineOrOnePerLine: false
4141
ConstructorInitializerIndentWidth: 4
@@ -50,7 +50,7 @@ IncludeCategories:
5050
- Regex: '^"'
5151
Priority: 2
5252
IndentCaseLabels: false
53-
IndentWidth: 2
53+
IndentWidth: 4
5454
IndentWrappedFunctionNames: false
5555
KeepEmptyLinesAtTheStartOfBlocks: false
5656
MacroBlockBegin: ''
@@ -80,6 +80,6 @@ SpacesInCStyleCastParentheses: false
8080
SpacesInParentheses: false
8181
SpacesInSquareBrackets: false
8282
Standard: Cpp11
83-
TabWidth: 2
83+
TabWidth: 4
8484
UseTab: Never
8585
...

0 commit comments

Comments
 (0)