.clang-format 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ---
  2. AccessModifierOffset: 0
  3. AlignAfterOpenBracket: true
  4. AlignConsecutiveAssignments: false
  5. AlignConsecutiveDeclarations: false
  6. AlignEscapedNewlinesLeft: false
  7. AlignOperands: true
  8. AlignTrailingComments: true
  9. AllowAllParametersOfDeclarationOnNextLine: true
  10. AllowShortBlocksOnASingleLine: false
  11. AllowShortCaseLabelsOnASingleLine: false
  12. AllowShortFunctionsOnASingleLine: None
  13. AllowShortIfStatementsOnASingleLine: false
  14. AllowShortLoopsOnASingleLine: false
  15. # AlwaysBreakAfterDefinitionReturnType: None
  16. AlwaysBreakAfterReturnType: None
  17. AlwaysBreakBeforeMultilineStrings: true
  18. AlwaysBreakTemplateDeclarations: false
  19. BinPackArguments: false
  20. BinPackParameters: true
  21. BreakBeforeBinaryOperators: None
  22. BreakBeforeBinaryOperators: None
  23. BreakBeforeBraces: Linux
  24. BreakBeforeTernaryOperators: true
  25. BreakConstructorInitializersBeforeComma: false
  26. # Too new for travis clang-format version
  27. # BreakStringLiterals: false
  28. ColumnLimit: 100
  29. CommentPragmas: '\*\<'
  30. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  31. ConstructorInitializerIndentWidth: 4
  32. ContinuationIndentWidth: 4
  33. Cpp11BracedListStyle: false
  34. DerivePointerAlignment: false
  35. DisableFormat: false
  36. ExperimentalAutoDetectBinPacking: false
  37. ForEachMacros: [ ]
  38. SortIncludes: true
  39. # IncludeBlocksStyle changed to IncludeBlocks, between xenial and disco, so we can't use it for consistency
  40. # IncludeBlocks: Regroup
  41. IncludeCategories:
  42. - Regex: '^<linux\/'
  43. Priority: 0
  44. - Regex: '^<'
  45. Priority: 1
  46. - Regex: '^"gamemode.h"'
  47. Priority: 2
  48. - Regex: '^"'
  49. Priority: 3
  50. # IncludeIsMainRegex: (project doesn't use a main includes that can add other includes via regex)
  51. IndentCaseLabels: false
  52. IndentWidth: 4
  53. IndentWrappedFunctionNames: false
  54. KeepEmptyLinesAtTheStartOfBlocks: false
  55. Language: Cpp
  56. MacroBlockBegin: ''
  57. MacroBlockEnd: ''
  58. MaxEmptyLinesToKeep: 1
  59. NamespaceIndentation: None
  60. PenaltyBreakBeforeFirstCallParameter: 400
  61. PenaltyBreakComment: 0
  62. PenaltyBreakString: 500
  63. PenaltyExcessCharacter: 10000
  64. PenaltyReturnTypeOnItsOwnLine: 600
  65. PointerAlignment: Right
  66. ReflowComments: true
  67. SpaceAfterCStyleCast: false
  68. SpaceBeforeAssignmentOperators: true
  69. SpaceBeforeParens: ControlStatements
  70. SpaceInEmptyParentheses: false
  71. SpacesBeforeTrailingComments: 1
  72. SpacesInAngles: false
  73. SpacesInCStyleCastParentheses: false
  74. SpacesInParentheses: false
  75. SpacesInSquareBrackets: false
  76. Standard: Cpp11
  77. TabWidth: 4
  78. UseTab: ForIndentation
  79. ...