.clang-format 6.7 KB

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