.clang-format 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. Language: Cpp
  2. # BasedOnStyle: LLVM
  3. AccessModifierOffset: -2
  4. AlignAfterOpenBracket: Align
  5. AlignArrayOfStructures: None
  6. AlignConsecutiveAssignments:
  7. Enabled: false
  8. AcrossEmptyLines: false
  9. AcrossComments: false
  10. AlignCompound: false
  11. AlignFunctionPointers: false
  12. PadOperators: true
  13. AlignConsecutiveBitFields:
  14. Enabled: false
  15. AcrossEmptyLines: false
  16. AcrossComments: false
  17. AlignCompound: false
  18. AlignFunctionPointers: false
  19. PadOperators: false
  20. AlignConsecutiveDeclarations:
  21. Enabled: false
  22. AcrossEmptyLines: false
  23. AcrossComments: false
  24. AlignCompound: false
  25. AlignFunctionPointers: false
  26. PadOperators: false
  27. AlignConsecutiveMacros:
  28. Enabled: false
  29. AcrossEmptyLines: false
  30. AcrossComments: false
  31. AlignCompound: false
  32. AlignFunctionPointers: false
  33. PadOperators: false
  34. AlignConsecutiveShortCaseStatements:
  35. Enabled: false
  36. AcrossEmptyLines: false
  37. AcrossComments: false
  38. AlignCaseColons: false
  39. AlignEscapedNewlines: Right
  40. AlignOperands: Align
  41. AlignTrailingComments:
  42. Kind: Always
  43. OverEmptyLines: 0
  44. AllowAllArgumentsOnNextLine: true
  45. AllowAllParametersOfDeclarationOnNextLine: true
  46. AllowBreakBeforeNoexceptSpecifier: Never
  47. AllowShortBlocksOnASingleLine: Never
  48. AllowShortCaseLabelsOnASingleLine: false
  49. AllowShortCompoundRequirementOnASingleLine: true
  50. AllowShortEnumsOnASingleLine: true
  51. AllowShortFunctionsOnASingleLine: All
  52. AllowShortIfStatementsOnASingleLine: Never
  53. AllowShortLambdasOnASingleLine: All
  54. AllowShortLoopsOnASingleLine: false
  55. AlwaysBreakAfterDefinitionReturnType: None
  56. AlwaysBreakAfterReturnType: None
  57. AlwaysBreakBeforeMultilineStrings: false
  58. AlwaysBreakTemplateDeclarations: MultiLine
  59. AttributeMacros:
  60. - __capability
  61. BinPackArguments: true
  62. BinPackParameters: true
  63. BitFieldColonSpacing: Both
  64. BraceWrapping:
  65. AfterCaseLabel: false
  66. AfterClass: false
  67. AfterControlStatement: Never
  68. AfterEnum: false
  69. AfterExternBlock: false
  70. AfterFunction: false
  71. AfterNamespace: false
  72. AfterObjCDeclaration: false
  73. AfterStruct: false
  74. AfterUnion: false
  75. BeforeCatch: false
  76. BeforeElse: false
  77. BeforeLambdaBody: false
  78. BeforeWhile: false
  79. IndentBraces: false
  80. SplitEmptyFunction: true
  81. SplitEmptyRecord: true
  82. SplitEmptyNamespace: true
  83. BreakAdjacentStringLiterals: true
  84. BreakAfterAttributes: Leave
  85. BreakAfterJavaFieldAnnotations: false
  86. BreakArrays: true
  87. BreakBeforeBinaryOperators: None
  88. BreakBeforeConceptDeclarations: Always
  89. BreakBeforeBraces: Attach
  90. BreakBeforeInlineASMColon: OnlyMultiline
  91. BreakBeforeTernaryOperators: true
  92. BreakConstructorInitializers: BeforeColon
  93. BreakInheritanceList: BeforeColon
  94. BreakStringLiterals: true
  95. ColumnLimit: 80
  96. CommentPragmas: '^ IWYU pragma:'
  97. CompactNamespaces: false
  98. ConstructorInitializerIndentWidth: 4
  99. ContinuationIndentWidth: 4
  100. Cpp11BracedListStyle: true
  101. DerivePointerAlignment: false
  102. DisableFormat: false
  103. EmptyLineAfterAccessModifier: Never
  104. EmptyLineBeforeAccessModifier: LogicalBlock
  105. ExperimentalAutoDetectBinPacking: false
  106. FixNamespaceComments: true
  107. ForEachMacros:
  108. - foreach
  109. - Q_FOREACH
  110. - BOOST_FOREACH
  111. IfMacros:
  112. - KJ_IF_MAYBE
  113. IncludeBlocks: Preserve
  114. IncludeCategories:
  115. - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
  116. Priority: 2
  117. SortPriority: 0
  118. CaseSensitive: false
  119. - Regex: '^(<|"(gtest|gmock|isl|json)/)'
  120. Priority: 3
  121. SortPriority: 0
  122. CaseSensitive: false
  123. - Regex: '.*'
  124. Priority: 1
  125. SortPriority: 0
  126. CaseSensitive: false
  127. IncludeIsMainRegex: '(Test)?$'
  128. IncludeIsMainSourceRegex: ''
  129. IndentAccessModifiers: false
  130. IndentCaseBlocks: false
  131. IndentCaseLabels: false
  132. IndentExternBlock: AfterExternBlock
  133. IndentGotoLabels: true
  134. IndentPPDirectives: None
  135. IndentRequiresClause: true
  136. IndentWidth: 2
  137. IndentWrappedFunctionNames: false
  138. InsertBraces: false
  139. InsertNewlineAtEOF: false
  140. InsertTrailingCommas: None
  141. IntegerLiteralSeparator:
  142. Binary: 0
  143. BinaryMinDigits: 0
  144. Decimal: 0
  145. DecimalMinDigits: 0
  146. Hex: 0
  147. HexMinDigits: 0
  148. JavaScriptQuotes: Leave
  149. JavaScriptWrapImports: true
  150. KeepEmptyLinesAtTheStartOfBlocks: true
  151. KeepEmptyLinesAtEOF: false
  152. LambdaBodyIndentation: Signature
  153. LineEnding: DeriveLF
  154. MacroBlockBegin: ''
  155. MacroBlockEnd: ''
  156. MaxEmptyLinesToKeep: 1
  157. NamespaceIndentation: None
  158. ObjCBinPackProtocolList: Auto
  159. ObjCBlockIndentWidth: 2
  160. ObjCBreakBeforeNestedBlockParam: true
  161. ObjCSpaceAfterProperty: false
  162. ObjCSpaceBeforeProtocolList: true
  163. PackConstructorInitializers: BinPack
  164. PenaltyBreakAssignment: 2
  165. PenaltyBreakBeforeFirstCallParameter: 19
  166. PenaltyBreakComment: 300
  167. PenaltyBreakFirstLessLess: 120
  168. PenaltyBreakOpenParenthesis: 0
  169. PenaltyBreakScopeResolution: 500
  170. PenaltyBreakString: 1000
  171. PenaltyBreakTemplateDeclaration: 10
  172. PenaltyExcessCharacter: 1000000
  173. PenaltyIndentedWhitespace: 0
  174. PenaltyReturnTypeOnItsOwnLine: 60
  175. PointerAlignment: Right
  176. PPIndentWidth: -1
  177. QualifierAlignment: Leave
  178. ReferenceAlignment: Pointer
  179. ReflowComments: true
  180. RemoveBracesLLVM: false
  181. RemoveParentheses: Leave
  182. RemoveSemicolon: false
  183. RequiresClausePosition: OwnLine
  184. RequiresExpressionIndentation: OuterScope
  185. SeparateDefinitionBlocks: Leave
  186. ShortNamespaceLines: 1
  187. SkipMacroDefinitionBody: false
  188. SortIncludes: CaseSensitive
  189. SortJavaStaticImport: Before
  190. SortUsingDeclarations: LexicographicNumeric
  191. SpaceAfterCStyleCast: false
  192. SpaceAfterLogicalNot: false
  193. SpaceAfterTemplateKeyword: true
  194. SpaceAroundPointerQualifiers: Default
  195. SpaceBeforeAssignmentOperators: true
  196. SpaceBeforeCaseColon: false
  197. SpaceBeforeCpp11BracedList: false
  198. SpaceBeforeCtorInitializerColon: true
  199. SpaceBeforeInheritanceColon: true
  200. SpaceBeforeJsonColon: false
  201. SpaceBeforeParens: ControlStatements
  202. SpaceBeforeParensOptions:
  203. AfterControlStatements: true
  204. AfterForeachMacros: true
  205. AfterFunctionDefinitionName: false
  206. AfterFunctionDeclarationName: false
  207. AfterIfMacros: true
  208. AfterOverloadedOperator: false
  209. AfterPlacementOperator: true
  210. AfterRequiresInClause: false
  211. AfterRequiresInExpression: false
  212. BeforeNonEmptyParentheses: false
  213. SpaceBeforeRangeBasedForLoopColon: true
  214. SpaceBeforeSquareBrackets: false
  215. SpaceInEmptyBlock: false
  216. SpacesBeforeTrailingComments: 1
  217. SpacesInAngles: Never
  218. SpacesInContainerLiterals: true
  219. SpacesInLineCommentPrefix:
  220. Minimum: 1
  221. Maximum: -1
  222. SpacesInParens: Never
  223. SpacesInParensOptions:
  224. InCStyleCasts: false
  225. InConditionalStatements: false
  226. InEmptyParentheses: false
  227. Other: false
  228. SpacesInSquareBrackets: false
  229. Standard: Latest
  230. StatementAttributeLikeMacros:
  231. - Q_EMIT
  232. StatementMacros:
  233. - Q_UNUSED
  234. - QT_REQUIRE_VERSION
  235. TabWidth: 8
  236. UseTab: Never
  237. VerilogBreakBetweenInstancePorts: true
  238. WhitespaceSensitiveMacros:
  239. - BOOST_PP_STRINGIZE
  240. - CF_SWIFT_NAME
  241. - NS_SWIFT_NAME
  242. - PP_STRINGIZE
  243. - STRINGIZE