.clang-format 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. # Generated from CLion C/C++ Code Style settings
  2. ---
  3. Language: Cpp
  4. Standard: Latest
  5. BasedOnStyle: LLVM
  6. AccessModifierOffset: -4
  7. AlignAfterOpenBracket: DontAlign
  8. AlignArrayOfStructures: Right
  9. AlignConsecutiveAssignments: true
  10. AlignConsecutiveBitFields: true
  11. AlignConsecutiveDeclarations:
  12. Enabled: true
  13. AcrossComments: true
  14. AlignConsecutiveMacros: true
  15. AlignConsecutiveShortCaseStatements:
  16. Enabled: true
  17. AlignEscapedNewlines: DontAlign
  18. AlignOperands: true
  19. AlignTrailingComments: true
  20. AllowAllArgumentsOnNextLine: true
  21. AllowAllParametersOfDeclarationOnNextLine: true
  22. AllowShortBlocksOnASingleLine: Always
  23. AllowShortCaseExpressionOnASingleLine: true
  24. AllowShortCaseLabelsOnASingleLine: true
  25. AllowShortCompoundRequirementOnASingleLine: true
  26. AllowShortEnumsOnASingleLine: true
  27. AllowShortFunctionsOnASingleLine: Empty
  28. AllowShortIfStatementsOnASingleLine: WithoutElse
  29. AllowShortLambdasOnASingleLine: All
  30. AllowShortLoopsOnASingleLine: true
  31. AlwaysBreakBeforeMultilineStrings: true
  32. BinPackArguments: true
  33. BinPackParameters: BinPack
  34. BitFieldColonSpacing: Before
  35. BraceWrapping:
  36. AfterCaseLabel: false
  37. AfterClass: false
  38. AfterControlStatement: Never
  39. AfterEnum: false
  40. AfterFunction: false
  41. AfterNamespace: false
  42. AfterStruct: false
  43. AfterUnion: false
  44. AfterExternBlock: false
  45. BeforeCatch: false
  46. BeforeElse: false
  47. BeforeLambdaBody: false
  48. BeforeWhile: false
  49. IndentBraces: true
  50. SplitEmptyFunction: false
  51. SplitEmptyRecord: false
  52. SplitEmptyNamespace: false
  53. BracedInitializerIndentWidth: 2
  54. BreakAdjacentStringLiterals: false
  55. BreakAfterAttributes: Leave
  56. BreakAfterReturnType: Automatic
  57. BreakArrays: false
  58. BreakBeforeBinaryOperators: All
  59. BreakBeforeBraces: Attach
  60. BreakBeforeConceptDeclarations: Always
  61. BreakBeforeTernaryOperators: true
  62. BreakConstructorInitializers: BeforeColon
  63. BreakFunctionDefinitionParameters: false
  64. BreakInheritanceList: BeforeColon
  65. BreakStringLiterals: true
  66. BreakTemplateDeclarations: Yes
  67. ColumnLimit: 128
  68. CompactNamespaces: true
  69. ContinuationIndentWidth: 4
  70. Cpp11BracedListStyle: false
  71. EmptyLineAfterAccessModifier: Never
  72. EmptyLineBeforeAccessModifier: LogicalBlock
  73. ExperimentalAutoDetectBinPacking: true
  74. IncludeBlocks: Regroup
  75. IncludeCategories:
  76. - Regex: '^".*'
  77. Priority: 1
  78. - Regex: '^<.*'
  79. Priority: 2
  80. - Regex: '.*'
  81. Priority: 3
  82. IncludeIsMainRegex: '([-_](test|unittest))?$'
  83. IndentAccessModifiers: false
  84. IndentCaseBlocks: false
  85. IndentCaseLabels: true
  86. IndentExternBlock: NoIndent
  87. IndentGotoLabels: false
  88. IndentPPDirectives: BeforeHash
  89. IndentRequiresClause: true
  90. IndentWidth: 4
  91. IndentWrappedFunctionNames: false
  92. InsertBraces: false
  93. InsertNewlineAtEOF: true
  94. LambdaBodyIndentation: OuterScope
  95. MacroBlockBegin: ''
  96. MacroBlockEnd: ''
  97. MaxEmptyLinesToKeep: 1
  98. NamespaceIndentation: All
  99. PackConstructorInitializers: BinPack
  100. PointerAlignment: Right
  101. ReferenceAlignment: Right
  102. ReflowComments: true
  103. RequiresClausePosition: OwnLineWithBrace
  104. RequiresExpressionIndentation: OuterScope
  105. SeparateDefinitionBlocks: Always
  106. SortIncludes: CaseInsensitive
  107. SortUsingDeclarations: Lexicographic
  108. SpaceAfterCStyleCast: true
  109. SpaceAfterLogicalNot: false
  110. SpaceAfterTemplateKeyword: false
  111. SpaceBeforeAssignmentOperators: true
  112. SpaceBeforeCaseColon: false
  113. SpaceBeforeCpp11BracedList: true
  114. SpaceBeforeInheritanceColon: false
  115. SpaceBeforeJsonColon: false
  116. SpaceBeforeRangeBasedForLoopColon: true
  117. SpaceBeforeSquareBrackets: false
  118. SpaceInEmptyBlock: true
  119. SpaceInEmptyParentheses: false
  120. SpacesInAngles: false
  121. SpacesInConditionalStatement: true
  122. SpacesInCStyleCastParentheses: false
  123. SpacesInContainerLiterals: false
  124. SpacesInParentheses: false
  125. TabWidth: 4