.clang-format 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. AccessModifierOffset: -4
  2. AlignAfterOpenBracket: AlwaysBreak
  3. AlignConsecutiveAssignments: false
  4. AlignConsecutiveDeclarations: false
  5. AlignEscapedNewlines: Left
  6. AlignOperands: true
  7. AlignTrailingComments: false
  8. AllowAllParametersOfDeclarationOnNextLine: false
  9. AllowShortBlocksOnASingleLine: Never
  10. AllowShortCaseLabelsOnASingleLine: false
  11. AllowShortFunctionsOnASingleLine: None
  12. AllowShortIfStatementsOnASingleLine: true
  13. AllowShortLoopsOnASingleLine: true
  14. AlwaysBreakAfterDefinitionReturnType: None
  15. AlwaysBreakAfterReturnType: None
  16. AlwaysBreakBeforeMultilineStrings: false
  17. AlwaysBreakTemplateDeclarations: false
  18. BinPackArguments: false
  19. BinPackParameters: false
  20. BreakBeforeBinaryOperators: None
  21. BreakBeforeBraces: Attach
  22. BreakBeforeTernaryOperators: false
  23. BreakConstructorInitializers: BeforeComma
  24. BreakStringLiterals: false
  25. ColumnLimit: 99
  26. CompactNamespaces: false
  27. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  28. ConstructorInitializerIndentWidth: 4
  29. ContinuationIndentWidth: 4
  30. Cpp11BracedListStyle: true
  31. DerivePointerAlignment: false
  32. DisableFormat: false
  33. ExperimentalAutoDetectBinPacking: false
  34. FixNamespaceComments: false
  35. IncludeBlocks: Preserve
  36. IncludeCategories:
  37. - Regex: '.*'
  38. Priority: 1
  39. IncludeIsMainRegex: '(Test)?$'
  40. IndentCaseLabels: false
  41. IndentPPDirectives: None
  42. IndentWidth: 4
  43. IndentWrappedFunctionNames: false
  44. JavaScriptQuotes: Leave
  45. JavaScriptWrapImports: true
  46. KeepEmptyLinesAtTheStartOfBlocks: false
  47. MacroBlockBegin: ''
  48. MacroBlockEnd: ''
  49. MaxEmptyLinesToKeep: 1
  50. NamespaceIndentation: None
  51. ObjCBinPackProtocolList: Auto
  52. ObjCBlockIndentWidth: 4
  53. ObjCSpaceAfterProperty: true
  54. ObjCSpaceBeforeProtocolList: true
  55. # Taken from git's rules
  56. PenaltyBreakAssignment: 10
  57. PenaltyBreakBeforeFirstCallParameter: 30
  58. PenaltyBreakComment: 10
  59. PenaltyBreakFirstLessLess: 0
  60. PenaltyBreakString: 10
  61. PenaltyExcessCharacter: 100
  62. PenaltyReturnTypeOnItsOwnLine: 60
  63. PointerAlignment: Left
  64. ReflowComments: false
  65. SortIncludes: false
  66. SortUsingDeclarations: false
  67. SpaceAfterCStyleCast: false
  68. SpaceAfterTemplateKeyword: true
  69. SpaceBeforeAssignmentOperators: true
  70. SpaceBeforeCtorInitializerColon: true
  71. SpaceBeforeInheritanceColon: true
  72. SpaceBeforeParens: Never
  73. SpaceBeforeRangeBasedForLoopColon: true
  74. SpaceInEmptyParentheses: false
  75. SpacesBeforeTrailingComments: 1
  76. SpacesInAngles: false
  77. SpacesInContainerLiterals: false
  78. SpacesInCStyleCastParentheses: false
  79. SpacesInParentheses: false
  80. SpacesInSquareBrackets: false
  81. Standard: Cpp03
  82. TabWidth: 4
  83. UseTab: Never