clang_format_glsl.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. BreakConstructorInitializers: AfterColon
  13. ColumnLimit: 0
  14. ConstructorInitializerIndentWidth: 8
  15. ContinuationIndentWidth: 8
  16. Cpp11BracedListStyle: false
  17. IncludeCategories:
  18. - Regex: ^".*"$
  19. Priority: 1
  20. - Regex: ^<.*\.h>$
  21. Priority: 2
  22. - Regex: ^<.*>$
  23. Priority: 3
  24. IndentCaseLabels: true
  25. IndentWidth: 4
  26. InsertBraces: true
  27. JavaImportGroups:
  28. - org.godotengine
  29. - android
  30. - androidx
  31. - com.android
  32. - com.google
  33. - java
  34. - javax
  35. KeepEmptyLinesAtTheStartOfBlocks: false
  36. ObjCBlockIndentWidth: 4
  37. PackConstructorInitializers: NextLine
  38. RemoveSemicolon: false # Differs from base .clang-format
  39. SpacesInLineCommentPrefix:
  40. Minimum: 0
  41. Maximum: -1
  42. Standard: c++20
  43. TabWidth: 4
  44. UseTab: Always