You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

.clang-format 8.1 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. ---
  2. BasedOnStyle: Microsoft
  3. Language: CSharp
  4. AccessModifierOffset: -4
  5. AlignAfterOpenBracket: BlockIndent
  6. AlignArrayOfStructures: None
  7. AlignConsecutiveMacros: None
  8. AlignConsecutiveAssignments: None
  9. AlignConsecutiveBitFields: None
  10. AlignConsecutiveDeclarations: None
  11. AlignEscapedNewlines: Right
  12. AlignOperands: Align
  13. AlignTrailingComments: true
  14. AllowAllArgumentsOnNextLine: true
  15. AllowAllParametersOfDeclarationOnNextLine: true
  16. AllowShortEnumsOnASingleLine: false
  17. AllowShortBlocksOnASingleLine: Never
  18. AllowShortCaseLabelsOnASingleLine: false
  19. AllowShortFunctionsOnASingleLine: None
  20. AllowShortLambdasOnASingleLine: All
  21. AllowShortIfStatementsOnASingleLine: Never
  22. AllowShortLoopsOnASingleLine: false
  23. AlwaysBreakAfterDefinitionReturnType: None
  24. AlwaysBreakAfterReturnType: None
  25. AlwaysBreakBeforeMultilineStrings: false
  26. AlwaysBreakTemplateDeclarations: MultiLine
  27. AttributeMacros:
  28. - __capability
  29. BinPackArguments: false
  30. BinPackParameters: false
  31. BraceWrapping:
  32. AfterCaseLabel: true
  33. AfterClass: true
  34. AfterControlStatement: Always
  35. AfterEnum: true
  36. AfterFunction: true
  37. AfterNamespace: true
  38. AfterObjCDeclaration: true
  39. AfterStruct: true
  40. AfterUnion: true
  41. AfterExternBlock: true
  42. BeforeCatch: true
  43. BeforeElse: true
  44. BeforeLambdaBody: true
  45. BeforeWhile: false
  46. IndentBraces: false
  47. SplitEmptyFunction: true
  48. SplitEmptyRecord: true
  49. SplitEmptyNamespace: true
  50. BreakBeforeBinaryOperators: None
  51. BreakBeforeConceptDeclarations: true
  52. BreakBeforeBraces: Custom
  53. BreakInheritanceList: AfterColon
  54. BreakBeforeTernaryOperators: false
  55. BreakConstructorInitializersBeforeComma: false
  56. BreakConstructorInitializers: AfterColon
  57. BreakAfterJavaFieldAnnotations: false
  58. BreakStringLiterals: false
  59. ColumnLimit: 0
  60. CommentPragmas: '^ THU pragma:'
  61. CompactNamespaces: false
  62. ConstructorInitializerIndentWidth: 4
  63. ContinuationIndentWidth: 4
  64. Cpp11BracedListStyle: true
  65. DeriveLineEnding: true
  66. DerivePointerAlignment: false
  67. DisableFormat: false
  68. EmptyLineAfterAccessModifier: Never
  69. EmptyLineBeforeAccessModifier: Always
  70. ExperimentalAutoDetectBinPacking: false
  71. PackConstructorInitializers: CurrentLine
  72. FixNamespaceComments: true
  73. ForEachMacros:
  74. - foreach
  75. - Q_FOREACH
  76. - BOOST_FOREACH
  77. IfMacros:
  78. - KJ_IF_MAYBE
  79. IncludeBlocks: Merge
  80. IncludeCategories:
  81. - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
  82. Priority: 2
  83. SortPriority: 0
  84. CaseSensitive: false
  85. - Regex: '^(<|"(gtest|gmock|isl|json)/)'
  86. Priority: 3
  87. SortPriority: 0
  88. CaseSensitive: false
  89. - Regex: '.*'
  90. Priority: 1
  91. SortPriority: 0
  92. CaseSensitive: false
  93. IndentAccessModifiers: false
  94. IndentCaseLabels: true
  95. IndentCaseBlocks: true
  96. IndentExternBlock: AfterExternBlock
  97. IndentGotoLabels: true
  98. IndentPPDirectives: None
  99. IndentRequires: false
  100. IndentWidth: 4
  101. IndentWrappedFunctionNames: true
  102. InsertTrailingCommas: None
  103. LambdaBodyIndentation: Signature
  104. MaxEmptyLinesToKeep: 1
  105. NamespaceIndentation: All
  106. PointerAlignment: Left
  107. QualifierAlignment: Leave
  108. ReferenceAlignment: Pointer
  109. ReflowComments: true
  110. SeparateDefinitionBlocks: Leave
  111. SortIncludes: Never
  112. SpaceAfterTemplateKeyword: false
  113. SpaceBeforeAssignmentOperators: true
  114. SpaceBeforeCaseColon: false
  115. SpaceBeforeCtorInitializerColon: true
  116. SpaceBeforeInheritanceColon: true
  117. SpaceBeforeParens: ControlStatements
  118. SpaceBeforeParensOptions:
  119. AfterControlStatements: true
  120. AfterForeachMacros: true
  121. AfterFunctionDefinitionName: false
  122. AfterFunctionDeclarationName: false
  123. AfterIfMacros: true
  124. AfterOverloadedOperator: false
  125. BeforeNonEmptyParentheses: false
  126. SpaceBeforeRangeBasedForLoopColon: true
  127. SpacesInSquareBrackets: false
  128. SpaceInEmptyBlock: true
  129. SpaceInEmptyParentheses: false
  130. SpacesBeforeTrailingComments: 2
  131. SpacesInAngles: Never
  132. SpacesInCStyleCastParentheses: false
  133. SpacesInConditionalStatement: false
  134. SpacesInContainerLiterals: false
  135. SpacesInLineCommentPrefix:
  136. Minimum: 1
  137. SpacesInParentheses: false
  138. SpaceBeforeSquareBrackets: false
  139. Standard: Latest
  140. TabWidth: 4
  141. UseTab: Never
  142. ---
  143. BasedOnStyle: Google
  144. Language: Cpp
  145. AccessModifierOffset: -4
  146. AlignAfterOpenBracket: BlockIndent
  147. AlignArrayOfStructures: None
  148. AlignConsecutiveMacros: None
  149. AlignConsecutiveAssignments: None
  150. AlignConsecutiveBitFields: None
  151. AlignConsecutiveDeclarations: None
  152. AlignEscapedNewlines: Right
  153. AlignOperands: Align
  154. AlignTrailingComments: true
  155. AllowAllArgumentsOnNextLine: true
  156. AllowAllParametersOfDeclarationOnNextLine: true
  157. AllowShortEnumsOnASingleLine: false
  158. AllowShortBlocksOnASingleLine: Never
  159. AllowShortCaseLabelsOnASingleLine: false
  160. AllowShortFunctionsOnASingleLine: None
  161. AllowShortLambdasOnASingleLine: All
  162. AllowShortIfStatementsOnASingleLine: Never
  163. AllowShortLoopsOnASingleLine: false
  164. AlwaysBreakAfterDefinitionReturnType: None
  165. AlwaysBreakAfterReturnType: None
  166. AlwaysBreakBeforeMultilineStrings: false
  167. AlwaysBreakTemplateDeclarations: MultiLine
  168. AttributeMacros:
  169. - __capability
  170. BinPackArguments: false
  171. BinPackParameters: false
  172. BraceWrapping:
  173. AfterCaseLabel: true
  174. AfterClass: true
  175. AfterControlStatement: Always
  176. AfterEnum: true
  177. AfterFunction: true
  178. AfterNamespace: true
  179. AfterObjCDeclaration: true
  180. AfterStruct: true
  181. AfterUnion: true
  182. AfterExternBlock: true
  183. BeforeCatch: true
  184. BeforeElse: true
  185. BeforeLambdaBody: true
  186. BeforeWhile: false
  187. IndentBraces: false
  188. SplitEmptyFunction: true
  189. SplitEmptyRecord: true
  190. SplitEmptyNamespace: true
  191. BreakBeforeBinaryOperators: None
  192. BreakBeforeConceptDeclarations: true
  193. BreakBeforeBraces: Custom
  194. BreakInheritanceList: AfterColon
  195. BreakBeforeTernaryOperators: false
  196. BreakConstructorInitializersBeforeComma: false
  197. BreakConstructorInitializers: AfterColon
  198. BreakAfterJavaFieldAnnotations: false
  199. BreakStringLiterals: false
  200. ColumnLimit: 0
  201. CommentPragmas: '^ THU pragma:'
  202. CompactNamespaces: false
  203. ConstructorInitializerIndentWidth: 4
  204. ContinuationIndentWidth: 4
  205. Cpp11BracedListStyle: true
  206. DeriveLineEnding: true
  207. DerivePointerAlignment: false
  208. DisableFormat: false
  209. EmptyLineAfterAccessModifier: Never
  210. EmptyLineBeforeAccessModifier: Always
  211. ExperimentalAutoDetectBinPacking: false
  212. PackConstructorInitializers: CurrentLine
  213. FixNamespaceComments: true
  214. ForEachMacros:
  215. - foreach
  216. - Q_FOREACH
  217. - BOOST_FOREACH
  218. IfMacros:
  219. - KJ_IF_MAYBE
  220. IncludeBlocks: Merge
  221. IncludeCategories:
  222. - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
  223. Priority: 2
  224. SortPriority: 0
  225. CaseSensitive: false
  226. - Regex: '^(<|"(gtest|gmock|isl|json)/)'
  227. Priority: 3
  228. SortPriority: 0
  229. CaseSensitive: false
  230. - Regex: '.*'
  231. Priority: 1
  232. SortPriority: 0
  233. CaseSensitive: false
  234. IndentAccessModifiers: false
  235. IndentCaseLabels: true
  236. IndentCaseBlocks: true
  237. IndentExternBlock: AfterExternBlock
  238. IndentGotoLabels: true
  239. IndentPPDirectives: None
  240. IndentRequires: false
  241. IndentWidth: 4
  242. IndentWrappedFunctionNames: true
  243. InsertTrailingCommas: None
  244. LambdaBodyIndentation: Signature
  245. MaxEmptyLinesToKeep: 1
  246. NamespaceIndentation: All
  247. PointerAlignment: Left
  248. QualifierAlignment: Leave
  249. ReferenceAlignment: Pointer
  250. ReflowComments: true
  251. SeparateDefinitionBlocks: Leave
  252. SortIncludes: Never
  253. SpaceAfterTemplateKeyword: false
  254. SpaceBeforeAssignmentOperators: true
  255. SpaceBeforeCaseColon: false
  256. SpaceBeforeCtorInitializerColon: true
  257. SpaceBeforeInheritanceColon: true
  258. SpaceBeforeParens: ControlStatements
  259. SpaceBeforeParensOptions:
  260. AfterControlStatements: true
  261. AfterForeachMacros: true
  262. AfterFunctionDefinitionName: false
  263. AfterFunctionDeclarationName: false
  264. AfterIfMacros: true
  265. AfterOverloadedOperator: false
  266. BeforeNonEmptyParentheses: false
  267. SpaceBeforeRangeBasedForLoopColon: true
  268. SpacesInSquareBrackets: false
  269. SpaceInEmptyBlock: true
  270. SpaceInEmptyParentheses: false
  271. SpacesBeforeTrailingComments: 2
  272. SpacesInAngles: Never
  273. SpacesInCStyleCastParentheses: false
  274. SpacesInConditionalStatement: false
  275. SpacesInContainerLiterals: false
  276. SpacesInLineCommentPrefix:
  277. Minimum: 1
  278. SpacesInParentheses: false
  279. SpaceBeforeSquareBrackets: false
  280. Standard: Latest
  281. TabWidth: 4
  282. UseTab: Never