summaryrefslogtreecommitdiffstats
path: root/misc/utility/.clang-format-glsl
diff options
context:
space:
mode:
Diffstat (limited to 'misc/utility/.clang-format-glsl')
-rw-r--r--misc/utility/.clang-format-glsl42
1 files changed, 42 insertions, 0 deletions
diff --git a/misc/utility/.clang-format-glsl b/misc/utility/.clang-format-glsl
new file mode 100644
index 0000000000..59efa8fa35
--- /dev/null
+++ b/misc/utility/.clang-format-glsl
@@ -0,0 +1,42 @@
+# GLSL-specific rules.
+# The rules should be the same as .clang-format, except those explicitly mentioned.
+BasedOnStyle: LLVM
+AccessModifierOffset: -4
+AlignAfterOpenBracket: DontAlign
+AlignOperands: DontAlign
+AlignTrailingComments:
+ Kind: Never
+ OverEmptyLines: 0
+AllowAllParametersOfDeclarationOnNextLine: false
+BreakConstructorInitializers: AfterColon
+ColumnLimit: 0
+ConstructorInitializerIndentWidth: 8
+ContinuationIndentWidth: 8
+Cpp11BracedListStyle: false
+IncludeCategories:
+ - Regex: ^".*"$
+ Priority: 1
+ - Regex: ^<.*\.h>$
+ Priority: 2
+ - Regex: ^<.*>$
+ Priority: 3
+IndentCaseLabels: true
+IndentWidth: 4
+JavaImportGroups:
+ - org.godotengine
+ - android
+ - androidx
+ - com.android
+ - com.google
+ - java
+ - javax
+KeepEmptyLinesAtTheStartOfBlocks: false
+ObjCBlockIndentWidth: 4
+PackConstructorInitializers: NextLine
+RemoveSemicolon: false # Differs from base .clang-format
+SpacesInLineCommentPrefix:
+ Minimum: 0
+ Maximum: -1
+Standard: c++20
+TabWidth: 4
+UseTab: Always