forked from LearningOS/uCore-Tutorial-Code-2023S
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
34 lines (30 loc) · 849 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
34
# 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: Google
IndentWidth: 4
UseTab: Never
ColumnLimit: 180
MaxEmptyLinesToKeep: 1
DerivePointerAlignment: true
PointerAlignment: Left
AlignArrayOfStructures: Left
AlignConsecutiveMacros: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortBlocksOnASingleLine: false
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakTemplateDeclarations: Yes
AlignAfterOpenBracket: Align
BinPackArguments: false
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false