.clang-format 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ---
  2. # TODO: cleanup
  3. BasedOnStyle: LLVM
  4. StatementMacros: [_Pragma]
  5. IndentWidth: 8
  6. UseTab: Always
  7. AccessModifierOffset: -4
  8. AlignAfterOpenBracket: "Align"
  9. AlignConsecutiveAssignments: "Consecutive"
  10. AlignConsecutiveDeclarations: "AcrossComments"
  11. # AlignConsecutiveAssignments: Align
  12. # AlignConsecutiveBitFields: Align
  13. AlignConsecutiveMacros: "AcrossComments"
  14. AlignEscapedNewlines: Right
  15. AlignOperands: "AlignAfterOperator"
  16. # AlignTrailingComments: True
  17. AllowAllArgumentsOnNextLine: False
  18. AllowShortBlocksOnASingleLine: Always
  19. AllowShortCaseLabelsOnASingleLine: False
  20. AllowShortFunctionsOnASingleLine: All
  21. AlwaysBreakAfterReturnType: "AllDefinitions"
  22. # AlwaysBreakBeforeMultilineStrings: True
  23. AllowShortIfStatementsOnASingleLine: "WithoutElse"
  24. AlwaysBreakBeforeMultilineStrings: True
  25. BinPackArguments: False
  26. BinPackParameters: False
  27. BitFieldColonSpacing: "Both"
  28. BreakBeforeBraces: "Custom"
  29. BraceWrapping:
  30. AfterEnum: False
  31. AfterCaseLabel: False
  32. AfterFunction: True
  33. AfterStruct: False
  34. AfterUnion: False
  35. AfterExternBlock: False
  36. SplitEmptyFunction: False
  37. BreakBeforeBinaryOperators: "NonAssignment"
  38. ColumnLimit: 79
  39. Cpp11BracedListStyle: False
  40. DerivePointerAlignment: True
  41. IndentGotoLabels: True
  42. IndentPPDirectives: "AfterHash"
  43. PointerAlignment: Right
  44. ReflowComments: True
  45. SortIncludes: Never
  46. # ForEachMacros: ["cvector_iter"]
  47. SpaceAfterCStyleCast: False
  48. SpaceAfterLogicalNot: False
  49. SpaceAroundPointerQualifiers: "Default"
  50. SpaceBeforeAssignmentOperators: True
  51. SpacesBeforeTrailingComments: 2
  52. SpacesInContainerLiterals: True
  53. SpaceBeforeParens: "Custom"
  54. SpaceBeforeParensOptions:
  55. AfterControlStatements: True
  56. AfterForeachMacros: False
  57. # StatementAttributeLikeMacros: []
  58. InsertTrailingCommas: "Wrapped"