.clang-format 6.6 KB

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