-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
36 lines (36 loc) · 1.18 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
################################################################################
#
# Custom options file for clang-format, a source code
# formatter for C/C++ (and some other languages).
#
# usage:
# cd src
# clang-format -i --verbose --style=file *.c *.h
#
# Some documentation of the options is provided here for convenience. For full
# options documentation, go to astyle.sourceforge.net/astyle.html.
################################################################################
BasedOnStyle: LLVM
AccessModifierOffset: -1
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignTrailingComments: false
AllowShortFunctionsOnASingleLine: None
AllowShortLambdasOnASingleLine: None
AlwaysBreakBeforeMultilineStrings: true
BreakBeforeBraces: Allman
BreakInheritanceList: AfterColon
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: AfterColon
IndentCaseLabels: true
IndentWidth: 4
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: All
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
SpaceAfterTemplateKeyword: false
SpacesBeforeTrailingComments: 2
Standard: Auto
TabWidth: 4