.clang-format 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. ---
  2. Language: Cpp
  3. BasedOnStyle: WebKit
  4. AccessModifierOffset: -8
  5. AlignAfterOpenBracket: DontAlign
  6. AlignConsecutiveAssignments: false
  7. #AlignConsecutiveBitFields: false
  8. AlignConsecutiveDeclarations: false
  9. AlignConsecutiveMacros: true
  10. AlignEscapedNewlines: Left
  11. AlignOperands: false
  12. AlignTrailingComments: false
  13. AllowAllArgumentsOnNextLine: false
  14. AllowAllConstructorInitializersOnNextLine: false
  15. AllowAllParametersOfDeclarationOnNextLine: false
  16. AllowShortBlocksOnASingleLine: Empty
  17. AllowShortCaseLabelsOnASingleLine: false
  18. AllowShortFunctionsOnASingleLine: None
  19. AllowShortLambdasOnASingleLine: None
  20. AllowShortIfStatementsOnASingleLine: false
  21. AllowShortLoopsOnASingleLine: false
  22. AlwaysBreakAfterDefinitionReturnType: None
  23. AlwaysBreakAfterReturnType: AllDefinitions
  24. AlwaysBreakBeforeMultilineStrings: false
  25. AlwaysBreakTemplateDeclarations: MultiLine
  26. BinPackArguments: true
  27. BinPackParameters: true
  28. #BitFieldColonSpacing: None
  29. BraceWrapping:
  30. AfterCaseLabel: false
  31. AfterClass: false
  32. AfterControlStatement: Never
  33. AfterEnum: true
  34. AfterFunction: true ####
  35. AfterNamespace: false
  36. AfterObjCDeclaration: false
  37. AfterStruct: false
  38. AfterUnion: false
  39. AfterExternBlock: false
  40. BeforeCatch: false
  41. BeforeElse: false
  42. # BeforeLambdaBody:false
  43. # BeforeWhile: false
  44. IndentBraces: false
  45. SplitEmptyFunction: true
  46. SplitEmptyRecord: true
  47. SplitEmptyNamespace: true
  48. BreakAfterJavaFieldAnnotations: true
  49. BreakBeforeBinaryOperators: None
  50. BreakBeforeBraces: Custom
  51. BreakBeforeInheritanceComma: false
  52. BreakBeforeTernaryOperators: false
  53. BreakConstructorInitializers: AfterColon
  54. BreakInheritanceList: AfterColon
  55. BreakStringLiterals: false
  56. ColumnLimit: 80
  57. CompactNamespaces: false
  58. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  59. ConstructorInitializerIndentWidth: 8
  60. ContinuationIndentWidth: 4
  61. Cpp11BracedListStyle: false
  62. DeriveLineEnding: true
  63. DerivePointerAlignment: false
  64. DisableFormat: false
  65. ExperimentalAutoDetectBinPacking: true
  66. FixNamespaceComments: true
  67. ForEachMacros:
  68. - foreach
  69. - Q_FOREACH
  70. - ARB_ARRFOREACH
  71. - ARB_ARRFOREACH_REVWCOND
  72. - ARB_ARRFOREACH_REVERSE
  73. - ARB_FOREACH
  74. - ARB_FOREACH_FROM
  75. - ARB_FOREACH_SAFE
  76. - ARB_FOREACH_REVERSE
  77. - ARB_FOREACH_REVERSE_FROM
  78. - ARB_FOREACH_REVERSE_SAFE
  79. - CPU_FOREACH
  80. - FOREACH_THREAD_IN_PROC
  81. - FOREACH_PROC_IN_SYSTEM
  82. - FOREACH_PRISON_CHILD
  83. - FOREACH_PRISON_DESCENDANT
  84. - FOREACH_PRISON_DESCENDANT_LOCKED
  85. - FOREACH_PRISON_DESCENDANT_LOCKED_LEVEL
  86. - MNT_VNODE_FOREACH_ALL
  87. - MNT_VNODE_FOREACH_ACTIVE
  88. - RB_FOREACH
  89. - RB_FOREACH_FROM
  90. - RB_FOREACH_SAFE
  91. - RB_FOREACH_REVERSE
  92. - RB_FOREACH_REVERSE_FROM
  93. - RB_FOREACH_REVERSE_SAFE
  94. - SLIST_FOREACH
  95. - SLIST_FOREACH_FROM
  96. - SLIST_FOREACH_FROM_SAFE
  97. - SLIST_FOREACH_SAFE
  98. - SLIST_FOREACH_PREVPTR
  99. - SPLAY_FOREACH
  100. - LIST_FOREACH
  101. - LIST_FOREACH_FROM
  102. - LIST_FOREACH_FROM_SAFE
  103. - LIST_FOREACH_SAFE
  104. - STAILQ_FOREACH
  105. - STAILQ_FOREACH_FROM
  106. - STAILQ_FOREACH_FROM_SAFE
  107. - STAILQ_FOREACH_SAFE
  108. - TAILQ_FOREACH
  109. - TAILQ_FOREACH_FROM
  110. - TAILQ_FOREACH_FROM_SAFE
  111. - TAILQ_FOREACH_REVERSE
  112. - TAILQ_FOREACH_REVERSE_FROM
  113. - TAILQ_FOREACH_REVERSE_FROM_SAFE
  114. - TAILQ_FOREACH_REVERSE_SAFE
  115. - TAILQ_FOREACH_SAFE
  116. - VM_MAP_ENTRY_FOREACH
  117. - VM_PAGE_DUMP_FOREACH
  118. IncludeBlocks: Preserve
  119. IndentCaseLabels: false
  120. IndentGotoLabels: false
  121. IndentPPDirectives: None
  122. IndentWidth: 8
  123. IndentWrappedFunctionNames: false
  124. KeepEmptyLinesAtTheStartOfBlocks: true
  125. MaxEmptyLinesToKeep: 2
  126. NamespaceIndentation: All
  127. ObjCBinPackProtocolList: Auto
  128. ObjCBlockIndentWidth: 4
  129. ObjCSpaceAfterProperty: false
  130. ObjCSpaceBeforeProtocolList: true
  131. PenaltyBreakAssignment: 40
  132. PenaltyBreakBeforeFirstCallParameter: 100
  133. PenaltyBreakComment: 300
  134. PenaltyBreakFirstLessLess: 120
  135. PenaltyBreakString: 1000
  136. PenaltyBreakTemplateDeclaration: 10
  137. PenaltyExcessCharacter: 1000000
  138. PenaltyReturnTypeOnItsOwnLine: 60
  139. PointerAlignment: Right
  140. ReflowComments: true
  141. SortIncludes: false
  142. SortUsingDeclarations: false
  143. SpaceAfterCStyleCast: false
  144. SpaceAfterLogicalNot: false
  145. SpaceAfterTemplateKeyword: false
  146. SpaceBeforeAssignmentOperators: true
  147. SpaceBeforeCpp11BracedList: true
  148. SpaceBeforeCtorInitializerColon: false
  149. SpaceBeforeInheritanceColon: false
  150. SpaceBeforeParens: ControlStatements #ControlStatementsExceptForEachMacros
  151. SpaceBeforeRangeBasedForLoopColon: true
  152. SpaceBeforeSquareBrackets: false
  153. SpaceInEmptyBlock: false
  154. SpaceInEmptyParentheses: false
  155. SpacesBeforeTrailingComments: 1
  156. SpacesInAngles: false
  157. SpacesInConditionalStatement: false
  158. SpacesInContainerLiterals: false
  159. SpacesInCStyleCastParentheses: false
  160. SpacesInParentheses: false
  161. SpacesInSquareBrackets: false
  162. Standard: Latest
  163. TabWidth: 8
  164. UseCRLF: false
  165. UseTab: Always
  166. ...