.clang-format 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. ---
  2. Language: Cpp
  3. AccessModifierOffset: 0
  4. AlignArrayOfStructures: Left
  5. AlignConsecutiveAssignments:
  6. Enabled: false
  7. AlignConsecutiveBitFields:
  8. Enabled: true
  9. AcrossEmptyLines: true
  10. AcrossComments: true
  11. AlignConsecutiveDeclarations:
  12. Enabled: false
  13. AlignConsecutiveMacros:
  14. Enabled: false
  15. AlignConsecutiveShortCaseStatements:
  16. Enabled: true
  17. AcrossEmptyLines: true
  18. AcrossComments: true
  19. AlignCaseColons: false
  20. AlignEscapedNewlines: Left
  21. AlignOperands: Align
  22. AlignTrailingComments:
  23. Kind: Never
  24. AllowAllArgumentsOnNextLine: true
  25. AllowAllParametersOfDeclarationOnNextLine: true
  26. AllowShortBlocksOnASingleLine: Empty
  27. AllowShortCaseLabelsOnASingleLine: false
  28. AllowShortEnumsOnASingleLine: false
  29. AllowShortFunctionsOnASingleLine: Empty
  30. AllowShortIfStatementsOnASingleLine: Never
  31. AllowShortLambdasOnASingleLine: Empty
  32. AllowShortLoopsOnASingleLine: false
  33. AlwaysBreakBeforeMultilineStrings: false
  34. BinPackArguments: false
  35. BinPackParameters: false
  36. BitFieldColonSpacing: Both
  37. BraceWrapping:
  38. AfterCaseLabel: true
  39. AfterClass: true
  40. AfterControlStatement: Always
  41. AfterEnum: true
  42. AfterFunction: true
  43. AfterNamespace: true
  44. AfterStruct: true
  45. AfterUnion: true
  46. AfterExternBlock: true
  47. BeforeCatch: true
  48. BeforeElse: true
  49. BeforeLambdaBody: false
  50. BeforeWhile: true
  51. IndentBraces: false
  52. SplitEmptyFunction: false
  53. SplitEmptyRecord: false
  54. SplitEmptyNamespace: false
  55. BracedInitializerIndentWidth: 4
  56. BreakAfterAttributes: Never
  57. BreakBeforeBinaryOperators: None
  58. BreakBeforeBraces: Allman
  59. BreakBeforeConceptDeclarations: Always
  60. BreakBeforeInlineASMColon: OnlyMultiline
  61. BreakBeforeTernaryOperators: false
  62. BreakConstructorInitializers: AfterColon
  63. BreakInheritanceList: AfterColon
  64. BreakStringLiterals: true
  65. ColumnLimit: 80
  66. CompactNamespaces: false
  67. ConstructorInitializerIndentWidth: 4
  68. ContinuationIndentWidth: 4
  69. Cpp11BracedListStyle: true
  70. DerivePointerAlignment: false
  71. EmptyLineAfterAccessModifier: Never
  72. EmptyLineBeforeAccessModifier: LogicalBlock
  73. FixNamespaceComments: true
  74. IncludeBlocks: Merge
  75. IncludeCategories:
  76. - Regex: '^<gtest/.*>'
  77. Priority: 10
  78. - Regex: '^<(concepts|coroutine|any|bitset|chrono|compare|debugging|expected|functional|initializer_list|optional|source_location|tuple|type_traits|typeindex|typeinfo|utility|variant|version|memory|memory_resource|new|scoped_allocator|limits|exception|stacktrace|system_error|charconv|format|string|string_view|array|deque|flat_map|flat_set|forward_list|list|map|mdspan|queue|set|span|stack|unordered_map|unordered_set|vector|iterator|generator|ranges|algorithm|execution|bit|complex|linalg|numbers|numeric|random|ratio|valarray|locale|text_encoding|fstream|iomanip|ios|iosfwd|iostream|istream|ostream|print|spanstream|sstream|streambuf|syncstream|filesystem|regex|atomic|barrier|condition_variable|future|hazard_pointer|latch|mutex|rcu|semaphore|shared_mutex|stop_token|thread)>'
  79. Priority: 20
  80. - Regex: '^<std.*>'
  81. Priority: 30
  82. - Regex: '^<c.*>'
  83. Priority: 40
  84. - Regex: '^<boost/.*>'
  85. Priority: 50
  86. - Regex: '^<tins/.*>'
  87. Priority: 61
  88. - Regex: '^<yaml-cpp/.*>'
  89. Priority: 62
  90. - Regex: '^<unistd.h>'
  91. Priority: 70
  92. - Regex: '^<io.h>'
  93. Priority: 71
  94. - Regex: '"[^"]+\\.hpp"'
  95. Priority: 80
  96. - Regex: '"[^"]+\\.h"'
  97. Priority: 81
  98. - Regex: '.*'
  99. Priority: 90
  100. IndentAccessModifiers: true
  101. IndentCaseBlocks: false
  102. IndentCaseLabels: true
  103. IndentExternBlock: AfterExternBlock
  104. IndentGotoLabels: true
  105. IndentPPDirectives: BeforeHash
  106. IndentWidth: 4
  107. IndentWrappedFunctionNames: true
  108. InsertNewlineAtEOF: true
  109. InsertTrailingCommas: None
  110. IntegerLiteralSeparator:
  111. Binary: 4
  112. BinaryMinDigits: 3
  113. Decimal: 3
  114. DecimalMinDigits: 6
  115. Hex: 4
  116. HexMinDigits: 3
  117. KeepEmptyLinesAtEOF: false
  118. KeepEmptyLinesAtTheStartOfBlocks: false
  119. LambdaBodyIndentation: Signature
  120. LineEnding: LF
  121. MaxEmptyLinesToKeep: 1
  122. NamespaceIndentation: All
  123. PPIndentWidth: -1
  124. PackConstructorInitializers: CurrentLine
  125. PointerAlignment: Middle
  126. ReferenceAlignment: Left
  127. ReflowComments: true
  128. RequiresClausePosition: OwnLine
  129. RequiresExpressionIndentation: Keyword
  130. SeparateDefinitionBlocks: Always
  131. SortIncludes: CaseInsensitive
  132. SortUsingDeclarations: LexicographicNumeric
  133. SpaceAfterCStyleCast: true
  134. SpaceAfterLogicalNot: false
  135. SpaceAfterTemplateKeyword: false
  136. SpaceAroundPointerQualifiers: Both
  137. SpaceBeforeAssignmentOperators: true
  138. SpaceBeforeCaseColon: false
  139. SpaceBeforeCpp11BracedList: false
  140. SpaceBeforeCtorInitializerColon: true
  141. SpaceBeforeInheritanceColon: true
  142. SpaceBeforeParens: ControlStatements
  143. SpaceBeforeParensOptions:
  144. AfterControlStatements: true
  145. AfterForeachMacros: true
  146. AfterFunctionDefinitionName: false
  147. AfterFunctionDeclarationName: false
  148. AfterIfMacros: true
  149. AfterOverloadedOperator: false
  150. AfterRequiresInClause: false
  151. AfterRequiresInExpression: false
  152. BeforeNonEmptyParentheses: false
  153. SpaceBeforeRangeBasedForLoopColon: true
  154. SpaceBeforeSquareBrackets: false
  155. SpaceInEmptyBlock: false
  156. SpacesBeforeTrailingComments: 1
  157. SpacesInAngles: Never
  158. SpacesInLineCommentPrefix:
  159. Minimum: 1
  160. Maximum: -1
  161. SpacesInParens: Never
  162. SpacesInSquareBrackets: false
  163. TabWidth: 4
  164. UseTab: Never
  165. ...