-
Notifications
You must be signed in to change notification settings - Fork 4
/
.clang-format
28 lines (28 loc) · 918 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
---
# Most of the settings are inherited by LLVM default
BasedOnStyle: LLVM
# Cpp covers both C and C++.
Language: Cpp
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveMacros: Consecutive
AlignEscapedNewlines: Left
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortFunctionsOnASingleLine: Inline
AllowShortLoopsOnASingleLine: true
AlwaysBreakBeforeMultilineStrings: true
BinPackArguments: false
BinPackParameters: false
ColumnLimit: 100
IndentCaseLabels: true
# Most files have used this indentation width and to not get to large diffs
# at the first adaption to clang the width is kept at 4 instead of the LLVM and
# Google default of 2.
IndentWidth: 4
PointerAlignment: Left
KeepEmptyLinesAtTheStartOfBlocks: false
SpacesBeforeTrailingComments: 2
Standard: Auto
...