1
0

.clang-format 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. # clang-format 14
  2. Language: Cpp
  3. Standard: c++20
  4. AccessModifierOffset: -2 #?
  5. AlignAfterOpenBracket: AlwaysBreak
  6. AlignArrayOfStructures: Left
  7. AlignConsecutiveAssignments: false
  8. AlignConsecutiveBitFields: false
  9. AlignConsecutiveDeclarations: false
  10. AlignConsecutiveMacros: true
  11. AlignEscapedNewlines: DontAlign
  12. AlignOperands: AlignAfterOperator
  13. AlignTrailingComments: true
  14. AllowAllArgumentsOnNextLine: true
  15. AllowAllConstructorInitializersOnNextLine: true
  16. AllowAllParametersOfDeclarationOnNextLine: true
  17. AllowShortBlocksOnASingleLine: Never
  18. AllowShortCaseLabelsOnASingleLine: false
  19. AllowShortEnumsOnASingleLine: false
  20. AllowShortFunctionsOnASingleLine: Empty
  21. AllowShortIfStatementsOnASingleLine: false
  22. AllowShortLambdasOnASingleLine: Inline
  23. AllowShortLoopsOnASingleLine: false
  24. AlwaysBreakAfterReturnType: None
  25. AlwaysBreakBeforeMultilineStrings: true
  26. AlwaysBreakTemplateDeclarations: Yes
  27. AttributeMacros: []
  28. BinPackArguments: true
  29. BinPackParameters: false
  30. BitFieldColonSpacing: Both
  31. BraceWrapping:
  32. AfterCaseLabel: true
  33. AfterClass: false
  34. AfterControlStatement: MultiLine
  35. AfterEnum: false
  36. AfterFunction: false
  37. AfterNamespace: false
  38. #AfterObjCDeclaration
  39. AfterStruct: false
  40. AfterUnion: false
  41. AfterExternBlock: false
  42. BeforeCatch: false
  43. BeforeElse: false
  44. BeforeLambdaBody: true
  45. BeforeWhile: false
  46. IndentBraces: false
  47. SplitEmptyFunction: true
  48. SplitEmptyRecord: false
  49. SplitEmptyNamespace: true
  50. #BreakAfterJavaFieldAnnotations
  51. BreakBeforeBinaryOperators: NonAssignment
  52. BreakBeforeBraces: Custom
  53. BreakBeforeConceptDeclarations: true
  54. BreakBeforeTernaryOperators: true
  55. BreakConstructorInitializers: BeforeComma
  56. BreakInheritanceList: BeforeComma
  57. BreakStringLiterals: false
  58. ColumnLimit: 0
  59. CommentPragmas: '' #?
  60. CompactNamespaces: false
  61. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  62. ConstructorInitializerIndentWidth: 2 #?
  63. ContinuationIndentWidth: 2 #?
  64. Cpp11BracedListStyle: true
  65. DeriveLineEnding: true
  66. DerivePointerAlignment: false
  67. EmptyLineAfterAccessModifier: Leave
  68. EmptyLineBeforeAccessModifier: Leave
  69. FixNamespaceComments: true
  70. ForEachMacros: []
  71. IfMacros: ['MPT_MAYBE_CONSTANT_IF']
  72. IncludeBlocks: Preserve
  73. IncludeCategories: [] #?
  74. IncludeIsMainRegex: '' #?
  75. IncludeIsMainSourceRegex: '' #?
  76. IndentAccessModifiers: false
  77. IndentCaseBlocks: true
  78. IndentCaseLabels: true
  79. IndentExternBlock: NoIndent
  80. IndentGotoLabels: false
  81. IndentPPDirectives: None
  82. #IndentRequiresClause: true
  83. #BeforeHash
  84. IndentWidth: 2
  85. IndentWrappedFunctionNames: true
  86. InsertTrailingCommas: None
  87. #JavaImportGroups
  88. #JavaScriptQuotes
  89. #JavaScriptWrapImports
  90. KeepEmptyLinesAtTheStartOfBlocks: true
  91. LambdaBodyIndentation: OuterScope
  92. MacroBlockBegin: '' #?
  93. MacroBlockEnd: '' #?
  94. MaxEmptyLinesToKeep: 3
  95. NamespaceIndentation: None
  96. NamespaceMacros: [] #?
  97. #ObjCBinPackProtocolList
  98. #ObjCBlockIndentWidth
  99. #ObjCBreakBeforeNestedBlockParam
  100. #ObjCSpaceAfterProperty
  101. #ObjCSpaceBeforeProtocolList
  102. PackConstructorInitializers: Never
  103. #PenaltyBreakAssignment
  104. #PenaltyBreakBeforeFirstCallParameter
  105. #PenaltyBreakComment
  106. #PenaltyBreakFirstLessLess
  107. #PenaltyBreakOpenParenthesis
  108. #PenaltyBreakString
  109. #PenaltyBreakTemplateDeclaration
  110. #PenaltyExcessCharacter
  111. #PenaltyIndentedWhitespace
  112. #PenaltyReturnTypeOnItsOwnLine
  113. PointerAlignment: Middle
  114. PPIndentWidth: -1
  115. #RawStringFormats
  116. QualifierAlignment: Leave
  117. #QualifierOrder: ['static', 'inline', 'constexpr', 'volatile', 'const', 'restrict', 'type']
  118. ReferenceAlignment: Pointer
  119. ReflowComments: false
  120. RemoveBracesLLVM: false
  121. SeparateDefinitionBlocks: Leave
  122. ShortNamespaceLines: 1
  123. SortIncludes: false
  124. #SortJavaStaticImport
  125. SortUsingDeclarations: true
  126. SpaceAfterCStyleCast: false
  127. SpaceAfterLogicalNot: false
  128. SpaceAfterTemplateKeyword: true
  129. SpaceAroundPointerQualifiers: Default
  130. SpaceBeforeAssignmentOperators: true
  131. SpaceBeforeCaseColon: false
  132. SpaceBeforeCpp11BracedList: false
  133. SpaceBeforeCtorInitializerColon: true
  134. SpaceBeforeInheritanceColon: true
  135. SpaceBeforeParens: ControlStatements
  136. SpaceBeforeParensOptions:
  137. AfterControlStatements: true
  138. AfterForeachMacros: true
  139. AfterFunctionDeclarationName: false
  140. AfterFunctionDefinitionName: false
  141. AfterIfMacros: true
  142. AfterOverloadedOperator: false
  143. #AfterRequiresInClause: false
  144. #AfterRequiresInExpression: false
  145. BeforeNonEmptyParentheses: false
  146. SpaceBeforeRangeBasedForLoopColon: true
  147. SpaceBeforeSquareBrackets: false
  148. SpaceInEmptyBlock: true
  149. SpaceInEmptyParentheses: false
  150. SpacesBeforeTrailingComments: 2
  151. SpacesInAngles: false
  152. SpacesInCStyleCastParentheses: false
  153. SpacesInConditionalStatement: true
  154. SpacesInContainerLiterals: true
  155. SpacesInLineCommentPrefix:
  156. Minimum: 1
  157. Maximum: -1
  158. SpacesInParentheses: true
  159. SpacesInSquareBrackets: false
  160. StatementAttributeLikeMacros: []
  161. StatementMacros: [ 'MPT_WARNING', 'MPT_TEST_GROUP_INLINE_IDENTIFIER', 'MPT_TEST_GROUP_INLINE', 'MPT_TEST_GROUP_STATIC' ] #?
  162. TabWidth: 2
  163. TypenameMacros: [] #?
  164. UseCRLF: false
  165. UseTab: ForContinuationAndIndentation
  166. WhitespaceSensitiveMacros:
  167. - MPT_PP_STRINGIFY