1
0

.clang-format 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. BasedOnStyle: llvm
  2. ---
  3. AccessModifierOffset: -4
  4. AlignEscapedNewlines: DontAlign
  5. AllowShortBlocksOnASingleLine: Always
  6. AllowShortCompoundRequirementOnASingleLine: true
  7. AllowShortEnumsOnASingleLine: true
  8. AllowShortFunctionsOnASingleLine: Empty
  9. AllowShortIfStatementsOnASingleLine: WithoutElse
  10. AllowShortLambdasOnASingleLine: All
  11. AllowShortLoopsOnASingleLine: true
  12. AlwaysBreakTemplateDeclarations: Yes
  13. BreakBeforeBinaryOperators: NonAssignment
  14. BreakBeforeBraces: Attach
  15. BreakBeforeConceptDeclarations: Always
  16. BreakBeforeTernaryOperators: true
  17. ColumnLimit: 0
  18. DerivePointerAlignment: false
  19. IncludeCategories:
  20. - Regex: '<[[:alnum:]_]+>'
  21. Priority: 1
  22. - Regex: '<(gtest|gmock)/'
  23. Priority: 2
  24. - Regex: '<[[:alnum:]_./]+>'
  25. Priority: 3
  26. - Regex: '<entt/'
  27. Priority: 4
  28. - Regex: '.*'
  29. Priority: 5
  30. IncludeIsMainRegex: "^$"
  31. IndentPPDirectives: AfterHash
  32. IndentRequiresClause: false
  33. IndentWidth: 4
  34. InsertBraces: true
  35. InsertNewlineAtEOF: true
  36. KeepEmptyLinesAtTheStartOfBlocks: false
  37. Language: Cpp
  38. PointerAlignment: Right
  39. RequiresClausePosition: OwnLineWithBrace
  40. RequiresExpressionIndentation: OuterScope
  41. SpaceAfterCStyleCast: false
  42. SpaceAfterTemplateKeyword: false
  43. SpaceAroundPointerQualifiers: After
  44. SpaceBeforeCaseColon: false
  45. SpaceBeforeCtorInitializerColon: false
  46. SpaceBeforeInheritanceColon: false
  47. SpaceBeforeParens: Custom
  48. SpaceBeforeParensOptions:
  49. AfterControlStatements: false
  50. AfterForeachMacros: false
  51. AfterFunctionDeclarationName: false
  52. AfterFunctionDefinitionName: false
  53. AfterIfMacros: false
  54. AfterOverloadedOperator: false
  55. AfterPlacementOperator: false
  56. AfterRequiresInClause: true
  57. AfterRequiresInExpression: false
  58. BeforeNonEmptyParentheses: false
  59. SpaceBeforeRangeBasedForLoopColon: false
  60. Standard: Latest
  61. TabWidth: 4
  62. UseTab: Never