.clang-format 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. AlignAfterOpenBracket: DontAlign
  2. AlignArrayOfStructures: 'Left'
  3. AlignConsecutiveAssignments: false
  4. AlignConsecutiveBitFields: 'AcrossEmptyLinesAndComments'
  5. AlignConsecutiveMacros: 'AcrossEmptyLinesAndComments'
  6. AlignConsecutiveDeclarations: false
  7. AlignEscapedNewlines: Left
  8. AlignOperands: 'AlignAfterOperator'
  9. AlignTrailingComments: true
  10. AllowAllArgumentsOnNextLine: true
  11. AllowAllParametersOfDeclarationOnNextLine: true
  12. AllowShortBlocksOnASingleLine: 'Empty'
  13. AllowShortCaseLabelsOnASingleLine: false
  14. AllowShortEnumsOnASingleLine: false
  15. AllowShortFunctionsOnASingleLine: Empty
  16. AllowShortIfStatementsOnASingleLine: WithoutElse
  17. AllowShortLambdasOnASingleLine: All
  18. AllowShortLoopsOnASingleLine: false
  19. AlwaysBreakAfterReturnType: None
  20. AlwaysBreakBeforeMultilineStrings: false
  21. AlwaysBreakTemplateDeclarations: No
  22. BinPackArguments: false
  23. BinPackParameters: false
  24. BitFieldColonSpacing: 'Both'
  25. BreakBeforeBraces: Custom
  26. BraceWrapping:
  27. AfterCaseLabel: true
  28. AfterClass: true
  29. AfterControlStatement: Always
  30. AfterEnum: true
  31. AfterFunction: true
  32. AfterNamespace: true
  33. AfterObjCDeclaration: true
  34. AfterStruct: true
  35. AfterUnion: true
  36. AfterExternBlock: true
  37. BeforeCatch: false
  38. BeforeElse: true
  39. BeforeLambdaBody: false
  40. BeforeWhile: false
  41. IndentBraces: false
  42. SplitEmptyFunction: false
  43. SplitEmptyRecord: false
  44. SplitEmptyNamespace: false
  45. BreakBeforeBinaryOperators: All
  46. BreakBeforeConceptDeclarations: false
  47. BreakBeforeTernaryOperators: true
  48. BreakConstructorInitializers: BeforeColon
  49. BreakInheritanceList: AfterComma
  50. BreakStringLiterals: true
  51. ColumnLimit: 80
  52. CompactNamespaces: false
  53. ConstructorInitializerIndentWidth: 4
  54. ContinuationIndentWidth: 4
  55. AccessModifierOffset: -4
  56. Cpp11BracedListStyle: true
  57. DeriveLineEnding: true
  58. DerivePointerAlignment: false
  59. DisableFormat: false
  60. EmptyLineAfterAccessModifier: 'Never'
  61. EmptyLineBeforeAccessModifier: 'Always'
  62. FixNamespaceComments: true
  63. IncludeBlocks: Regroup
  64. IncludeCategories:
  65. - Regex: '"pch\.h"'
  66. Priority: 0
  67. - Regex: '<.+>'
  68. Priority: 1
  69. - Regex: '".+"'
  70. Priority: 2
  71. IndentAccessModifiers: false
  72. IndentCaseBlocks: true
  73. IndentCaseLabels: false
  74. IndentExternBlock: 'Indent'
  75. IndentGotoLabels: false
  76. IndentPPDirectives: 'AfterHash'
  77. IndentWidth: 4
  78. InsertTrailingCommas: 'Wrapped'
  79. KeepEmptyLinesAtTheStartOfBlocks: false
  80. LambdaBodyIndentation: 'Signature'
  81. Language: Cpp
  82. NamespaceIndentation: All
  83. PPIndentWidth: 4
  84. PointerAlignment: 'Left'
  85. ReferenceAlignment: 'Left'
  86. ReflowComments: true
  87. SortIncludes: CaseInsensitive
  88. SortUsingDeclarations: true
  89. SpaceAfterCStyleCast: false
  90. SpaceAfterLogicalNot: false
  91. SpaceAfterTemplateKeyword: false
  92. SpaceBeforeAssignmentOperators: true
  93. SpaceBeforeCaseColon: false
  94. SpaceBeforeCpp11BracedList: false
  95. SpaceBeforeInheritanceColon: true
  96. SpaceBeforeParens: 'Custom'
  97. SpaceBeforeParensOptions:
  98. AfterControlStatements: true
  99. AfterForeachMacros: true
  100. AfterFunctionDeclarationName: false
  101. AfterFunctionDefinitionName: false
  102. AfterIfMacros: true
  103. AfterOverloadedOperator: false
  104. BeforeNonEmptyParentheses: false
  105. SpaceBeforeRangeBasedForLoopColon : true
  106. SpaceBeforeSquareBrackets: false
  107. SpaceInEmptyBlock: false
  108. SpaceInEmptyParentheses: false
  109. SpacesBeforeTrailingComments: 1
  110. SpacesInAngles: Never
  111. SpacesInCStyleCastParentheses: false
  112. SpacesInConditionalStatement: false
  113. SpacesInContainerLiterals: false
  114. RemoveBracesLLVM: false
  115. SeparateDefinitionBlocks: 'Always'
  116. SpacesInLineCommentPrefix:
  117. Minimum: 1
  118. Maximum: 1
  119. SpacesInParentheses: false
  120. SpacesInSquareBrackets: false
  121. Standard: Latest
  122. TabWidth: 4
  123. UseTab: Never
  124. PackConstructorInitializers: 'Never'
  125. QualifierAlignment: 'Custom'
  126. QualifierOrder: ['inline', 'static', 'const', 'constexpr', 'volatile', 'restrict', 'type']
  127. ForEachMacros: [TEST_CLASS, TEST_METHOD]