2016-05-11 14:30:56 +00:00
|
|
|
---
|
2018-05-31 17:40:34 +00:00
|
|
|
# This configuration requires clang-format version 6.0 exactly.
|
2016-05-11 14:30:56 +00:00
|
|
|
BasedOnStyle: Mozilla
|
|
|
|
AlignOperands: false
|
2018-05-31 17:40:34 +00:00
|
|
|
AllowShortFunctionsOnASingleLine: InlineOnly
|
2016-05-11 14:30:56 +00:00
|
|
|
AlwaysBreakAfterDefinitionReturnType: None
|
2018-05-31 17:40:34 +00:00
|
|
|
AlwaysBreakAfterReturnType: None
|
|
|
|
BinPackArguments: true
|
|
|
|
BinPackParameters: true
|
|
|
|
BraceWrapping:
|
|
|
|
AfterClass: true
|
|
|
|
AfterEnum: true
|
|
|
|
AfterFunction: true
|
|
|
|
AfterStruct: true
|
|
|
|
AfterUnion: true
|
|
|
|
BreakBeforeBraces: Custom
|
2016-05-11 14:30:56 +00:00
|
|
|
ColumnLimit: 79
|
2018-05-31 17:40:34 +00:00
|
|
|
IndentPPDirectives: AfterHash
|
|
|
|
SortUsingDeclarations: false
|
|
|
|
SpaceAfterTemplateKeyword: true
|
2019-09-21 14:38:38 +00:00
|
|
|
IncludeBlocks: Regroup
|
|
|
|
IncludeCategories:
|
|
|
|
- Regex: '^[<"]cmConfigure\.h'
|
|
|
|
Priority: -1
|
2020-01-03 17:44:48 +00:00
|
|
|
- Regex: '^<queue>'
|
|
|
|
Priority: 1
|
2019-11-18 18:15:49 +00:00
|
|
|
- Regex: '^(<|")cm(ext)?/'
|
2019-09-21 14:38:38 +00:00
|
|
|
Priority: 2
|
|
|
|
- Regex: '^(<|")windows\.h'
|
|
|
|
Priority: 3
|
|
|
|
- Regex: '^<sys/'
|
|
|
|
Priority: 5
|
|
|
|
- Regex: '^(<|")Qt?[A-Z]'
|
|
|
|
Priority: 6
|
|
|
|
- Regex: '^(<|")cmsys/'
|
|
|
|
Priority: 7
|
|
|
|
- Regex: '^(<|")cm_'
|
|
|
|
Priority: 8
|
|
|
|
- Regex: '^(<|")cm[A-Z][^.]+\.h'
|
|
|
|
Priority: 9
|
|
|
|
- Regex: '^<[^.]+\.h'
|
|
|
|
Priority: 4
|
|
|
|
- Regex: '^<'
|
|
|
|
Priority: 1
|
|
|
|
- Regex: '.*'
|
|
|
|
Priority: 10
|
2016-05-11 14:30:56 +00:00
|
|
|
...
|