-
Notifications
You must be signed in to change notification settings - Fork 6
/
.clang-format
44 lines (38 loc) · 1.2 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 100
Language: Cpp
DerivePointerAlignment: false
PointerAlignment: Left
AccessModifierOffset: -4
AlignConsecutiveAssignments: false
AlignEscapedNewlines: DontAlign
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
PenaltyBreakBeforeFirstCallParameter: 0
PenaltyReturnTypeOnItsOwnLine: 100
PointerBindsToType: true
BreakBeforeBraces: Stroustrup
RemoveSemicolon: true
InsertNewlineAtEOF: true
# closing brace on new line
AlignAfterOpenBracket: BlockIndent
# https://stackoverflow.com/questions/74977150/make-clang-format-break-after-the-usage-of-c-attributes
BreakAfterAttributes: Always
# Do not align consecutive comments that follow a line of code
AlignTrailingComments: false
# force argument on one line each
BinPackArguments: false
BinPackParameters: false
ExperimentalAutoDetectBinPacking: false
AllowAllParametersOfDeclarationOnNextLine: false
# AlwaysBreakAfterDefinitionReturnType: All
BraceWrapping:
AfterFunction: true
AfterClass: false
BeforeCatch: true
BeforeElse: true