.clang-format 1.2 KB
Newer Older
1
---
2
# This configuration requires clang-format version 6.0 exactly.
3 4
BasedOnStyle: Mozilla
AlignOperands: false
5
AllowShortFunctionsOnASingleLine: InlineOnly
6
AlwaysBreakAfterDefinitionReturnType: None
7 8 9 10 11 12 13 14 15 16
AlwaysBreakAfterReturnType: None
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
  AfterClass:      true
  AfterEnum:       true
  AfterFunction:   true
  AfterStruct:     true
  AfterUnion:      true
BreakBeforeBraces: Custom
17
ColumnLimit: 79
18 19 20
IndentPPDirectives: AfterHash
SortUsingDeclarations: false
SpaceAfterTemplateKeyword: true
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
IncludeBlocks: Regroup
IncludeCategories:
  - Regex:           '^[<"]cmConfigure\.h'
    Priority:        -1
  - Regex:           '^(<|")cm/'
    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
45
...