1
0

.clang-format 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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: '^"gamemode.h"'
  43. Priority: 0
  44. - Regex: '^"build-'
  45. Priority: 1
  46. - Regex: '^"common-'
  47. Priority: 2
  48. - Regex: '^"gamemode-'
  49. Priority: 3
  50. - Regex: '^<'
  51. Priority: 4
  52. # IncludeIsMainRegex: (project doesn't use a main includes that can add other includes via regex)
  53. IndentCaseLabels: false
  54. IndentWidth: 4
  55. IndentWrappedFunctionNames: false
  56. KeepEmptyLinesAtTheStartOfBlocks: false
  57. Language: Cpp
  58. MacroBlockBegin: ''
  59. MacroBlockEnd: ''
  60. MaxEmptyLinesToKeep: 1
  61. NamespaceIndentation: None
  62. PenaltyBreakBeforeFirstCallParameter: 400
  63. PenaltyBreakComment: 0
  64. PenaltyBreakString: 500
  65. PenaltyExcessCharacter: 10000
  66. PenaltyReturnTypeOnItsOwnLine: 600
  67. PointerAlignment: Right
  68. ReflowComments: true
  69. SpaceAfterCStyleCast: false
  70. SpaceBeforeAssignmentOperators: true
  71. SpaceBeforeParens: ControlStatements
  72. SpaceInEmptyParentheses: false
  73. SpacesBeforeTrailingComments: 1
  74. SpacesInAngles: false
  75. SpacesInCStyleCastParentheses: false
  76. SpacesInParentheses: false
  77. SpacesInSquareBrackets: false
  78. Standard: Cpp11
  79. TabWidth: 4
  80. UseTab: ForIndentation
  81. ...