-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
43 lines (33 loc) · 1.05 KB
/
.clang-format
File metadata and controls
43 lines (33 loc) · 1.05 KB
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
43
---
Language: Cpp
BasedOnStyle: LLVM
# Thụt đầu dòng 4 khoảng trắng, không dùng Tab
IndentWidth: 4
UseTab: Never
# Phong cách K&R: Dấu ngoặc mở dính liền (Attach)
BreakBeforeBraces: Attach
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
# Cấu hình từ khóa else và catch dính liền với dấu ngoặc đóng
AlwaysBreakAfterReturnType: None
# Độ dài tối đa của một dòng
ColumnLimit: 120
# Căn lề con trỏ (ví dụ: uint8_t* p_data)
PointerAlignment: Left
# Khoảng trắng
SpaceAfterCStyleCast: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
# Sắp xếp các include theo thứ tự ABC
SortIncludes: true
# Tiêu chuẩn C++
Standard: Latest
# Xử lý Namespace
NamespaceIndentation: None
FixNamespaceComments: true
# Quy tắc về dấu ngoặc nhọn cho các khối lệnh
AllowAllParametersOfDeclarationOnNextLine: true
BinPackParameters: false
BinPackArguments: false
...