Debian Codegraph @

src/amd/compiler/.clang-format

raw
1
2 BasedOnStyle: InheritParentConfig
3 DisableFormat: false
4
5 ColumnLimit: 100
6
7 # ACO clang-format rules:
8 Language: Cpp
9 Standard: c++14
10
11 # Force pointers to the type for C++
12 DerivePointerAlignment: false
13 PointerAlignment: Left
14
15 # Same effect as IndentAccessModifiers: False
16 AccessModifierOffset: -3
17
18 # Compact some cumbersome C++ code
19 SpaceBeforeCtorInitializerColon: True
20 AllowShortCaseLabelsOnASingleLine: True
21 AllowShortFunctionsOnASingleLine: InlineOnly
22 AllowShortBlocksOnASingleLine: Empty
23 AllowShortLambdasOnASingleLine: All
24
25 # Wrap before LambdaBody and disable SplitEmptyFunction
26 BraceWrapping:
27 AfterControlStatement: Never
28 AfterEnum: false
29 AfterFunction: true
30 AfterStruct: false
31 BeforeElse: false
32 SplitEmptyFunction: false
33 SplitEmptyRecord: false
34 BeforeLambdaBody: true
35
36 # Regroup #include blocks
37 IncludeBlocks: Regroup
38 IncludeCategories:
39 - Regex: '"aco.*'
40 Priority: 1
41 - Regex: '"(common|llvm|vulkan)\/.*'
42 Priority: 2
43 - Regex: '"(nir|util\/).*'
44 Priority: 3
45 - Regex: '.*\/.*'
46 Priority: 4
47 - Regex: '.*'
48 Priority: 5
49
50 MacroBlockBegin: 'BEGIN_TEST'
51 MacroBlockEnd: 'END_TEST'
52 CommentPragmas: '^(!|;|>>|~)'
53
54 WhitespaceSensitiveMacros: ['qoShaderModuleCreateInfoGLSL']