-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
42 lines (41 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
37
38
39
40
41
42
# SPDX-License-Identifier: GPL-2.0
#
# clang-format configuration file. Intended for clang-format >= 4.
#
# For more information, see:
#
# Documentation/process/clang-format.rst
# https://clang.llvm.org/docs/ClangFormat.html
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
#
BasedOnStyle: WebKit
ColumnLimit: 80
PointerAlignment: Left
AlignAfterOpenBracket: Align
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AlignConsecutiveDeclarations: false
AllowShortLoopsOnASingleLine: false
MaxEmptyLinesToKeep: 1
AccessModifierOffset: -4
AlignArrayOfStructures: Right
AlignConsecutiveAssignments: false
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveMacros: Consecutive
AlignEscapedNewlines: Left
AlignOperands: Align
TabWidth: 4
UseTab: Never
AlignEscapedNewlinesLeft: true
AllowShortCaseLabelsOnASingleLine: false
Cpp11BracedListStyle: false
IndentWidth: 4
SpaceBeforeAssignmentOperators: true
SpacesBeforeTrailingComments: 4
SpacesInAngles: false
AllowAllArgumentsOnNextLine: false
AllowShortEnumsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
NamespaceIndentation: All