-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
31 lines (31 loc) · 1015 Bytes
/
.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
---
# We use clang-format to keep C++ code styling consistent
# The rules for our specific style are delineated here
AccessModifierOffset: "-4"
AlignConsecutiveMacros: "true"
# AlignConsecutiveAssignments: "true"
AlignConsecutiveDeclarations: "true"
AlignEscapedNewlines: Left
AllowShortBlocksOnASingleLine: "true"
AllowShortCaseLabelsOnASingleLine: "true"
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: "true"
AlwaysBreakAfterReturnType: TopLevelDefinitions
AlwaysBreakTemplateDeclarations: "Yes"
BreakBeforeBraces: Stroustrup
BreakBeforeTernaryOperators: "true"
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
ColumnLimit: 120
CompactNamespaces: "true"
FixNamespaceComments: "true"
IncludeBlocks: Regroup
IndentCaseLabels: "true"
IndentPPDirectives: BeforeHash
IndentWidth: "4"
PointerAlignment: Left
NamespaceIndentation: Inner
SortIncludes: false
SortUsingDeclarations: "true"
SpaceAfterTemplateKeyword: "false"