CMake Nightly Date Stamp
[kiteware-cmake.git] / .clang-format
blob84b96ab55900b51ba9d6fee2caa01ce97a28ef2d
1 ---
2 # This configuration requires clang-format version 18 exactly.
3 BasedOnStyle: Mozilla
4 AlignOperands: false
5 AllowShortFunctionsOnASingleLine: InlineOnly
6 AlwaysBreakAfterDefinitionReturnType: None
7 AlwaysBreakAfterReturnType: None
8 BinPackArguments: true
9 BinPackParameters: true
10 BraceWrapping:
11   AfterClass:      true
12   AfterEnum:       true
13   AfterFunction:   true
14   AfterStruct:     true
15   AfterUnion:      true
16 BreakBeforeBraces: Custom
17 ColumnLimit: 79
18 IndentPPDirectives: AfterHash
19 QualifierAlignment: Right
20 SortUsingDeclarations: false
21 SpaceAfterTemplateKeyword: true
22 IncludeBlocks: Regroup
23 IncludeCategories:
24   - Regex:           '^[<"]cmSTL\.hxx'
25     Priority:        -2
26   - Regex:           '^[<"]cmConfigure\.h'
27     Priority:        -1
28   - Regex:           '^<queue>'
29     Priority:        1
30   - Regex:           '^(<|")cm(ext)?/'
31     Priority:        2
32   - Regex:           '^(<|")windows\.h'
33     Priority:        3
34   - Regex:           '^<sys/'
35     Priority:        5
36   - Regex:           '^(<|")Qt?[A-Z]'
37     Priority:        6
38   - Regex:           '^<cmtp/'
39     Priority:        7
40   - Regex:           '^(<|")cmsys/'
41     Priority:        8
42   - Regex:           '^(<|")cm_'
43     Priority:        9
44   - Regex:           '^(<|")cm[A-Z][^.]+\.h'
45     Priority:        10
46   - Regex:           '^<[^.]+\.h'
47     Priority:        4
48   - Regex:           '^<'
49     Priority:        1
50   - Regex:           '.*'
51     Priority:        11
52 ...