generated from cpp-best-practices/cmake_conan_boilerplate_template
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.clang-format
30 lines (29 loc) · 814 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
ColumnLimit: 110
IndentWidth: 2
TabWidth: 2
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
PackConstructorInitializers: Never
AlignEscapedNewlines: DontAlign
AlignAfterOpenBracket: AlwaysBreak
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: None
BreakConstructorInitializers: AfterColon
BreakStringLiterals: false
SortIncludes: CaseSensitive
IncludeBlocks: Regroup
IncludeCategories:
# # Specific external headers in <> to put first
- Regex: '<(catch2|gtest).*>'
Priority: 1
# External headers in <> with extension or /
- Regex: '<[-\w\/-_]+[\.\/][-\w\/-_]+>'
Priority: 2
# Standard headers in <>
- Regex: '<[-\w\/-_]+>'
Priority: 3
# Local headers in ""
- Regex: '"[-\w\/-_]*"'
Priority: 4
SortUsingDeclarations: true