-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path.clang-format
More file actions
44 lines (34 loc) · 973 Bytes
/
.clang-format
File metadata and controls
44 lines (34 loc) · 973 Bytes
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
---
Language: Cpp
BasedOnStyle: Google
ColumnLimit: 120
UseTab: Never
IndentWidth: 4
IndentCaseLabels: false
PointerAlignment: Left
DerivePointerAlignment: false
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: false
AllowAllArgumentsOnNextLine: false
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
AllowShortLambdasOnASingleLine: true
BreakConstructorInitializers: BeforeComma
BreakBeforeBinaryOperators: None
BreakStringLiterals: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterFunction: true
# PackConstructorInitializers: Never # When we have clang14
SpaceBeforeCtorInitializerColon: false
SpacesBeforeTrailingComments: 1
AlignTrailingComments: true
SortIncludes: false
SortUsingDeclarations: false
Cpp11BracedListStyle: false
PenaltyBreakAssignment: 2000
ForEachMacros: ['SC_MODULE', 'SC_CTOR']