.clang-format 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. BasedOnStyle: llvm
  2. ---
  3. AccessModifierOffset: -4
  4. AlignEscapedNewlines: DontAlign
  5. AllowShortBlocksOnASingleLine: Empty
  6. AllowShortEnumsOnASingleLine: true
  7. AllowShortFunctionsOnASingleLine: Empty
  8. AllowShortIfStatementsOnASingleLine: WithoutElse
  9. AllowShortLoopsOnASingleLine: true
  10. AlwaysBreakTemplateDeclarations: Yes
  11. BreakBeforeBinaryOperators: NonAssignment
  12. BreakBeforeTernaryOperators: true
  13. ColumnLimit: 0
  14. DerivePointerAlignment: false
  15. IncludeCategories:
  16. - Regex: '<[[:alnum:]_]+>'
  17. Priority: 1
  18. - Regex: '<(gtest|gmock)/'
  19. Priority: 2
  20. - Regex: '<[[:alnum:]_./]+>'
  21. Priority: 3
  22. - Regex: '<entt/'
  23. Priority: 4
  24. - Regex: '.*'
  25. Priority: 5
  26. IndentPPDirectives: AfterHash
  27. IndentWidth: 4
  28. KeepEmptyLinesAtTheStartOfBlocks: false
  29. Language: Cpp
  30. PointerAlignment: Right
  31. SpaceAfterCStyleCast: false
  32. SpaceAfterTemplateKeyword: false
  33. SpaceAroundPointerQualifiers: After
  34. SpaceBeforeCaseColon: false
  35. SpaceBeforeCtorInitializerColon: false
  36. SpaceBeforeInheritanceColon: false
  37. SpaceBeforeParens: Never
  38. SpaceBeforeRangeBasedForLoopColon: false
  39. Standard: Latest
  40. TabWidth: 4
  41. UseTab: Never