-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
42 lines (39 loc) · 1.1 KB
/
.clang-format
File metadata and controls
42 lines (39 loc) · 1.1 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
---
Language: Cpp
BasedOnStyle: Google
ColumnLimit: 100
Standard: Latest
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeConceptDeclarations: Always
# Reference and pointer alignment
DerivePointerAlignment: false
PointerAlignment: Right
ReferenceAlignment: Right
IncludeBlocks: Regroup
SortIncludes: CaseSensitive
IncludeCategories:
# C system headers (e.g., <unistd.h>, <stdlib.h>, <stdio.h>)
- Regex: '^<[a-z_][a-z0-9_]*\.h>'
Priority: 1
SortPriority: 1
CaseSensitive: true
# C system headers with subdirectories (e.g., <sys/types.h>, <linux/input.h>)
- Regex: '^<(sys|linux|netinet|arpa)/[a-z0-9_]+\.h>'
Priority: 1
SortPriority: 1
CaseSensitive: true
# C++ standard library headers (e.g., <algorithm>, <string>, <vector>)
- Regex: '^<[a-z_][a-z0-9_]*>$'
Priority: 2
SortPriority: 2
CaseSensitive: true
# Third-party libraries (catch-all for remaining angle bracket includes)
- Regex: '^<[^"]*>'
Priority: 3
SortPriority: 3
CaseSensitive: true
# Project headers (quoted includes)
- Regex: '^".*"'
Priority: 4
SortPriority: 4
CaseSensitive: true