.clang-format 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ---
  2. IndentWidth: 4
  3. TabWidth: 4
  4. Language: Cpp
  5. AccessModifierOffset: -2
  6. ColumnLimit: 0
  7. IncludeBlocks: Regroup
  8. MaxEmptyLinesToKeep: 1
  9. NamespaceIndentation: All
  10. PointerAlignment: Left
  11. SortIncludes: true
  12. SpaceBeforeParens: ControlStatements
  13. StatementMacros: ['Q_OBJECT']
  14. UseTab: ForIndentation
  15. AlignAfterOpenBracket: Align
  16. AlignConsecutiveAssignments: true
  17. AlignConsecutiveDeclarations: true
  18. AlignEscapedNewlines: DontAlign
  19. AlignOperands: true
  20. AlignTrailingComments: true
  21. AllowAllParametersOfDeclarationOnNextLine: false
  22. AllowShortBlocksOnASingleLine: false
  23. AllowShortCaseLabelsOnASingleLine: false
  24. AllowShortFunctionsOnASingleLine: false
  25. AllowShortIfStatementsOnASingleLine: false
  26. AllowShortLoopsOnASingleLine: false
  27. AlwaysBreakAfterReturnType: None
  28. AlwaysBreakBeforeMultilineStrings: false
  29. AlwaysBreakTemplateDeclarations: true
  30. BinPackArguments: false
  31. BinPackParameters: false
  32. BreakBeforeBraces: Allman
  33. BreakBeforeBinaryOperators: NonAssignment
  34. BreakBeforeTernaryOperators: true
  35. BreakConstructorInitializers: BeforeComma
  36. BreakInheritanceList: BeforeComma