.clang-format-glsl 1.0 KB

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