-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
39 lines (34 loc) · 1.08 KB
/
Copy path.clang-format
File metadata and controls
39 lines (34 loc) · 1.08 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
# Defines the Chromium style for automatic reformatting.
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Chromium
Language: Cpp
Standard: c++20
InsertBraces: true
InsertNewlineAtEOF: true
ColumnLimit: 120
IndentWidth: 2
ContinuationIndentWidth: 2
ConstructorInitializerIndentWidth: 2
# Sort #includes by following
# https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
#
# ref: https://clang.llvm.org/docs/ClangFormatStyleOptions.html#includeblocks
IncludeBlocks: Regroup
# ref: https://clang.llvm.org/docs/ClangFormatStyleOptions.html#includecategories
IncludeCategories:
# Note the low priority number.
# Other C system headers.
- Regex: '^<windows\.h>'
Priority: 1
- Regex: '^<.*\.h>'
Priority: 2
# C++ standard library headers.
- Regex: '^<.*>'
Priority: 3
# Other libraries.
- Regex: '.*'
Priority: 4
# ref: https://clang.llvm.org/docs/ClangFormatStyleOptions.html#includeismainregex
IncludeIsMainRegex: ""
MacroBlockBegin: ""
MacroBlockEnd: ""