.clang-format 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ---
  2. BasedOnStyle: LLVM
  3. AlignAfterOpenBracket: DontAlign
  4. AlignConsecutiveAssignments: false
  5. AlignConsecutiveDeclarations: false
  6. #AlignConsecutiveMacros: false
  7. AlignEscapedNewlines: false
  8. AlignOperands: false
  9. AlignTrailingComments: false
  10. #AllowAllArgumentsOnNextLine: true
  11. AllowAllParametersOfDeclarationOnNextLine: true
  12. AllowShortBlocksOnASingleLine: false
  13. AllowShortCaseLabelsOnASingleLine: false
  14. AllowShortFunctionsOnASingleLine: None
  15. AllowShortIfStatementsOnASingleLine: false
  16. AllowShortLoopsOnASingleLine: false
  17. AlwaysBreakAfterReturnType: None
  18. AlwaysBreakBeforeMultilineStrings: false
  19. BinPackArguments: true
  20. BinPackParameters: true
  21. BraceWrapping:
  22. # AfterCaseLabel: false
  23. # BraceWrappingAfterControlStatementStyle: Never
  24. AfterControlStatement: false
  25. AfterEnum: false
  26. AfterFunction: false
  27. AfterStruct: false
  28. AfterUnion: false
  29. AfterExternBlock: false
  30. BeforeElse: false
  31. BreakBeforeBinaryOperators: None
  32. BreakBeforeBraces: Attach
  33. BreakBeforeTernaryOperators: false
  34. BreakStringLiterals: false
  35. ColumnLimit: 0
  36. IncludeBlocks: Preserve
  37. #IndentCaseBlocks: false
  38. IndentCaseLabels: false
  39. #IndentGotoLabels: false
  40. IndentPPDirectives: None
  41. IndentWidth: 8
  42. ContinuationIndentWidth: 8
  43. IndentWrappedFunctionNames: true
  44. KeepEmptyLinesAtTheStartOfBlocks: true
  45. MaxEmptyLinesToKeep: 2
  46. PointerAlignment: Right
  47. ReflowComments: false
  48. SortIncludes: false
  49. SpaceAfterCStyleCast: false
  50. #SpaceAfterLogicalNot: false
  51. SpaceBeforeAssignmentOperators: true
  52. SpaceBeforeParens: ControlStatements
  53. #SpaceBeforeRangeBasedForLoopColon: true
  54. #SpaceBeforeSquareBrackets: false
  55. #SpaceInEmptyBlock: false
  56. SpaceInEmptyParentheses: false
  57. SpacesBeforeTrailingComments: 1
  58. SpacesInCStyleCastParentheses: false
  59. #SpacesInConditionalStatement: false
  60. SpacesInContainerLiterals: false
  61. SpacesInParentheses: false
  62. SpacesInSquareBrackets: false
  63. TabWidth: 8
  64. UseTab: ForContinuationAndIndentation
  65. PenaltyBreakAssignment: 2
  66. PenaltyBreakBeforeFirstCallParameter: 19
  67. PenaltyBreakComment: 300
  68. PenaltyBreakFirstLessLess: 120
  69. PenaltyBreakString: 1000
  70. PenaltyExcessCharacter: 1000000
  71. PenaltyReturnTypeOnItsOwnLine: 60
  72. ...