Skip to content

Commit 924c732

Browse files
committed
Add formatter
1 parent 1ee6e70 commit 924c732

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

.clang-format

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
BasedOnStyle: LLVM
2-
3-
IndentWidth: 4
4-
2+
AccessModifierOffset: -4
3+
AlignAfterOpenBracket: DontAlign
4+
AlignEscapedNewlines: LeftWithLastLine
5+
AlignTrailingComments: Leave
6+
AllowShortCaseExpressionOnASingleLine: false
7+
AllowShortFunctionsOnASingleLine: Inline
8+
AllowShortIfStatementsOnASingleLine: Never
59
BreakAfterReturnType: ExceptShortType
610
BreakBeforeBraces: Custom
11+
BreakConstructorInitializers: AfterColon
12+
BreakStringLiterals: false
713
BraceWrapping:
814
AfterCaseLabel: true
915
AfterFunction: true
@@ -13,23 +19,13 @@ BraceWrapping:
1319
AfterNamespace: false
1420
BeforeElse: true
1521
IndentBraces: false
16-
17-
# Don’t reflow or wrap lines
18-
ColumnLimit: 0
19-
20-
# Leave initializer lists alone
22+
ColumnLimit: 80
2123
Cpp11BracedListStyle: False
22-
23-
AllowShortCaseExpressionOnASingleLine: true
24-
AllowShortIfStatementsOnASingleLine: WithoutElse
25-
26-
# Switch/case
27-
IndentCaseLabels: true
24+
IndentCaseLabels: false
2825
IndentCaseBlocks: true
29-
3026
IndentPPDirectives: BeforeHash
31-
27+
IndentWidth: 4
3228
PointerAlignment: Left
33-
34-
SortIncludes: false
29+
ReflowComments: IndentOnly
3530
SpaceInEmptyBlock: true
31+
SpacesBeforeTrailingComments: 3

0 commit comments

Comments
 (0)