.clang-format 1.1 KB

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