-
Notifications
You must be signed in to change notification settings - Fork 545
/
.clang-format
40 lines (40 loc) · 1.31 KB
/
.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
35
36
37
38
39
40
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BasedOnStyle: Google
BinPackArguments: false
BinPackParameters: false
ColumnLimit: 100
CommentPragmas: '^\s*(@(addtogroup|copydoc|defgroup|fn|ref)|- )'
Cpp11BracedListStyle: true
DerivePointerAlignment: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '".*"' # relative headers
Priority: 10
- Regex: 'bsoncxx/config(/private)?/prelude\.(hpp|hh)' # v_noabi preludes
Priority: 50
- Regex: 'mongocxx/config(/private)?/prelude\.(hpp|hh)' # v_noabi preludes
Priority: 51
- Regex: 'bsoncxx/test/.*' # test headers
Priority: 60
- Regex: 'mongocxx/test/.*' # test headers
Priority: 61
- Regex: '<[[:alnum:]_.]+>' # system headers
Priority: 20
- Regex: 'bsoncxx/.*(-|\/)fwd\.(hpp|hh)' # all driver forwarding headers
Priority: 30
- Regex: 'mongocxx/.*(-|\/)fwd\.(hpp|hh)' # all driver forwarding headers
Priority: 31
- Regex: 'bsoncxx/.*' # all remaining (normal) driver headers
Priority: 40
- Regex: 'mongocxx/.*' # all remaining (normal) driver headers
Priority: 41
- Regex: '.*' # all other headers (third party)
Priority: 90
IndentWidth: 4
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
SpaceBeforeAssignmentOperators: true
Standard: Cpp11
UseTab: Never