Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/misc/utility/clang_format_glsl.yml
9900 views
1
# GLSL-specific rules.
2
# The rules should be the same as .clang-format, except those explicitly mentioned.
3
BasedOnStyle: LLVM
4
AccessModifierOffset: -4
5
AlignAfterOpenBracket: DontAlign
6
AlignOperands: DontAlign
7
AlignTrailingComments:
8
Kind: Never
9
OverEmptyLines: 0
10
AllowAllParametersOfDeclarationOnNextLine: false
11
AllowShortFunctionsOnASingleLine: Inline
12
AttributeMacros:
13
- _ALWAYS_INLINE_
14
- _FORCE_INLINE_
15
- _NO_INLINE_
16
BreakConstructorInitializers: AfterColon
17
ColumnLimit: 0
18
ConstructorInitializerIndentWidth: 8
19
ContinuationIndentWidth: 8
20
Cpp11BracedListStyle: false
21
IncludeCategories:
22
- Regex: ^".*"$
23
Priority: 1
24
- Regex: ^<.*\.h>$
25
Priority: 2
26
- Regex: ^<.*>$
27
Priority: 3
28
IndentCaseLabels: true
29
IndentWidth: 4
30
InsertBraces: true
31
JavaImportGroups:
32
- org.godotengine
33
- android
34
- androidx
35
- com.android
36
- com.google
37
- java
38
- javax
39
KeepEmptyLinesAtTheStartOfBlocks: false
40
ObjCBlockIndentWidth: 4
41
PackConstructorInitializers: NextLine
42
RemoveSemicolon: false # Differs from base .clang-format
43
SpacesInLineCommentPrefix:
44
Minimum: 0
45
Maximum: -1
46
Standard: c++20
47
TabWidth: 4
48
UseTab: Always
49
50