1
0

.clang-format 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. # clang-format 13
  2. Language: Cpp
  3. Standard: c++20
  4. AccessModifierOffset: -4 #?
  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: Always
  18. AllowShortCaseLabelsOnASingleLine: true
  19. AllowShortEnumsOnASingleLine: false
  20. AllowShortFunctionsOnASingleLine: Inline
  21. AllowShortIfStatementsOnASingleLine: WithoutElse
  22. AllowShortLambdasOnASingleLine: Inline
  23. AllowShortLoopsOnASingleLine: false
  24. AlwaysBreakAfterReturnType: None
  25. AlwaysBreakBeforeMultilineStrings: true
  26. AlwaysBreakTemplateDeclarations: Yes
  27. BinPackArguments: true
  28. BinPackParameters: false
  29. BitFieldColonSpacing: Both
  30. BraceWrapping:
  31. AfterCaseLabel: true
  32. AfterClass: true
  33. AfterControlStatement: Always
  34. AfterEnum: true
  35. AfterFunction: true
  36. AfterNamespace: true
  37. #AfterObjCDeclaration
  38. AfterStruct: true
  39. AfterUnion: true
  40. AfterExternBlock: true
  41. BeforeCatch: false
  42. BeforeElse: false
  43. BeforeLambdaBody: true
  44. BeforeWhile: false
  45. IndentBraces: false
  46. SplitEmptyFunction: true
  47. SplitEmptyRecord: true
  48. SplitEmptyNamespace: true
  49. #BreakAfterJavaFieldAnnotations
  50. BreakBeforeBinaryOperators: NonAssignment
  51. BreakBeforeBraces: Custom
  52. BreakBeforeConceptDeclarations: true
  53. BreakBeforeTernaryOperators: true
  54. BreakConstructorInitializers: BeforeComma
  55. BreakInheritanceList: BeforeComma
  56. BreakStringLiterals: false
  57. ColumnLimit: 0
  58. CommentPragmas: '' #?
  59. CompactNamespaces: false
  60. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  61. ConstructorInitializerIndentWidth: 4 #?
  62. ContinuationIndentWidth: 4 #?
  63. Cpp11BracedListStyle: true
  64. DeriveLineEnding: true
  65. DerivePointerAlignment: false
  66. EmptyLineAfterAccessModifier: Leave
  67. EmptyLineBeforeAccessModifier: Leave
  68. FixNamespaceComments: true
  69. ForEachMacros: []
  70. IfMacros: ['MPT_MAYBE_CONSTANT_IF']
  71. IncludeBlocks: Preserve
  72. IncludeCategories: [] #?
  73. IncludeIsMainRegex: '' #?
  74. IncludeIsMainSourceRegex: '' #?
  75. IndentAccessModifiers: false
  76. IndentCaseBlocks: true
  77. IndentCaseLabels: true
  78. IndentExternBlock: NoIndent
  79. IndentGotoLabels: false
  80. IndentPPDirectives: None
  81. #IndentRequiresClause: true
  82. #BeforeHash
  83. IndentWidth: 4
  84. IndentWrappedFunctionNames: true
  85. InsertTrailingCommas: None
  86. #JavaImportGroups
  87. #JavaScriptQuotes
  88. #JavaScriptWrapImports
  89. KeepEmptyLinesAtTheStartOfBlocks: true
  90. LambdaBodyIndentation: OuterScope
  91. MacroBlockBegin: '^MPT_TEST_GROUP_BEGIN|BEGIN_MESSAGE_MAP$' #?
  92. MacroBlockEnd: '^MPT_TEST_GROUP_END|END_MESSAGE_MAP$' #?
  93. MaxEmptyLinesToKeep: 5
  94. NamespaceIndentation: None
  95. NamespaceMacros: [] #?
  96. #ObjCBinPackProtocolList
  97. #ObjCBlockIndentWidth
  98. #ObjCBreakBeforeNestedBlockParam
  99. #ObjCSpaceAfterProperty
  100. #ObjCSpaceBeforeProtocolList
  101. #PenaltyBreakAssignment
  102. #PenaltyBreakBeforeFirstCallParameter
  103. #PenaltyBreakComment
  104. #PenaltyBreakFirstLessLess
  105. #PenaltyBreakString
  106. #PenaltyBreakTemplateDeclaration
  107. #PenaltyExcessCharacter
  108. #PenaltyIndentedWhitespace
  109. #PenaltyReturnTypeOnItsOwnLine
  110. PointerAlignment: Right
  111. PPIndentWidth: -1
  112. #RawStringFormats
  113. ReferenceAlignment: Pointer
  114. ReflowComments: false
  115. ShortNamespaceLines: 1
  116. SortIncludes: false
  117. #SortJavaStaticImport
  118. SortUsingDeclarations: true
  119. SpaceAfterCStyleCast: false
  120. SpaceAfterLogicalNot: false
  121. SpaceAfterTemplateKeyword: true
  122. SpaceAroundPointerQualifiers: Default
  123. SpaceBeforeAssignmentOperators: true
  124. SpaceBeforeCaseColon: false
  125. SpaceBeforeCpp11BracedList: false
  126. SpaceBeforeCtorInitializerColon: true
  127. SpaceBeforeInheritanceColon: true
  128. SpaceBeforeParens: Never
  129. SpaceBeforeRangeBasedForLoopColon: true
  130. SpaceBeforeSquareBrackets: false
  131. SpaceInEmptyBlock: false
  132. SpaceInEmptyParentheses: false
  133. SpacesBeforeTrailingComments: 2
  134. SpacesInAngles: false
  135. SpacesInCStyleCastParentheses: false
  136. SpacesInConditionalStatement: false
  137. SpacesInContainerLiterals: false
  138. SpacesInLineCommentPrefix:
  139. Minimum: 1
  140. Maximum: -1
  141. SpacesInParentheses: false
  142. SpacesInSquareBrackets: false
  143. StatementAttributeLikeMacros: []
  144. StatementMacros: [ 'OPENMPT_NAMESPACE_BEGIN', 'OPENMPT_NAMESPACE_END', 'MPT_MSVC_WORKAROUND_LNK4221', 'MPT_WARNING', 'MPT_TEST_GROUP_INLINE_IDENTIFIER', 'MPT_TEST_GROUP_INLINE', 'MPT_TEST_GROUP_STATIC' ] #?
  145. TabWidth: 4
  146. TypenameMacros: [] #?
  147. UseCRLF: false
  148. UseTab: ForContinuationAndIndentation
  149. WhitespaceSensitiveMacros:
  150. - MPT_PP_STRINGIFY