-
Notifications
You must be signed in to change notification settings - Fork 620
/
.clang-format
33 lines (32 loc) · 930 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
32
33
---
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# We base things of WebKit + Allman braces
# BasedOnStyle: WebKit
AccessModifierOffset: -4
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignTrailingComments: true
AllowShortFunctionsOnASingleLine: None
AlwaysBreakTemplateDeclarations: true
BreakBeforeBraces: Allman
BreakConstructorInitializers: BeforeComma
# This is just to make clang-format chill out! Use your best judgement!
ColumnLimit: 0
CompactNamespaces: 'false'
ConstructorInitializerIndentWidth: 0
Cpp11BracedListStyle: 'false'
IndentCaseLabels: 'true'
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: 'false'
Language: Cpp
NamespaceIndentation: All
PointerAlignment: Left
ReflowComments: true
SortIncludes: 'true'
SortUsingDeclarations: 'true'
SpaceBeforeParens: ControlStatements
SpacesBeforeTrailingComments: 1
Standard: Cpp11
UseTab: Never
...