.clang-format 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. BasedOnStyle: LLVM
  2. IndentWidth: 4
  3. UseTab: Never
  4. BreakBeforeBraces: Custom
  5. BraceWrapping:
  6. AfterClass: true
  7. AfterControlStatement: false
  8. AfterEnum: true
  9. AfterFunction: true
  10. AfterNamespace: true
  11. AfterObjCDeclaration: true
  12. AfterStruct: true
  13. AfterUnion: true
  14. BeforeCatch: true
  15. BeforeElse: false
  16. IndentBraces: false
  17. AlignConsecutiveAssignments: false
  18. AlignConsecutiveDeclarations: false
  19. AllowShortIfStatementsOnASingleLine: false
  20. IndentCaseLabels: true
  21. BinPackArguments: true
  22. BinPackParameters: false
  23. AlignTrailingComments: true
  24. AllowShortBlocksOnASingleLine: false
  25. AllowAllParametersOfDeclarationOnNextLine: true
  26. AllowShortFunctionsOnASingleLine: InlineOnly
  27. AlwaysBreakTemplateDeclarations: false
  28. ColumnLimit: 80
  29. MaxEmptyLinesToKeep: 2
  30. KeepEmptyLinesAtTheStartOfBlocks: false
  31. ContinuationIndentWidth: 2
  32. PointerAlignment: Right
  33. ReflowComments: false
  34. SpaceBeforeAssignmentOperators: true
  35. SpaceBeforeParens: Always
  36. SpaceInEmptyParentheses: false
  37. SpacesInAngles: false
  38. SpacesInParentheses: false
  39. SpacesInSquareBrackets: false
  40. Standard: Cpp03
  41. SortIncludes: false
  42. FixNamespaceComments: false
  43. BreakBeforeBinaryOperators: NonAssignment
  44. SpaceAfterTemplateKeyword: true
  45. AlignAfterOpenBracket: Align
  46. AlignOperands: true
  47. BreakConstructorInitializers: AfterColon
  48. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  49. SpaceAfterCStyleCast: true
  50. BreakBeforeTernaryOperators: true