.clang-format 7.7 KB

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