.clang-format 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. AccessModifierOffset: 0
  2. AlignAfterOpenBracket: DontAlign
  3. AlignArrayOfStructures: Left
  4. AlignConsecutiveAssignments: false
  5. AlignConsecutiveBitFields: true
  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. BreakBeforeBraces: Custom
  25. BraceWrapping:
  26. AfterCaseLabel: true
  27. AfterClass: true
  28. AfterControlStatement: Always
  29. AfterEnum: true
  30. AfterFunction: true
  31. AfterNamespace: true
  32. AfterObjCDeclaration: true
  33. AfterStruct: true
  34. AfterUnion: true
  35. AfterExternBlock: true
  36. BeforeCatch: false
  37. BeforeElse: true
  38. BeforeLambdaBody: false
  39. BeforeWhile: false
  40. IndentBraces: false
  41. SplitEmptyFunction: false
  42. SplitEmptyRecord: false
  43. SplitEmptyNamespace: false
  44. BreakBeforeBinaryOperators: All
  45. BreakBeforeConceptDeclarations: false
  46. BreakBeforeTernaryOperators: true
  47. BreakConstructorInitializers: BeforeColon
  48. BreakInheritanceList: AfterComma
  49. BreakStringLiterals: true
  50. ColumnLimit: 80
  51. CompactNamespaces: false
  52. ConstructorInitializerIndentWidth: 4
  53. ContinuationIndentWidth: 4
  54. Cpp11BracedListStyle: true
  55. DeriveLineEnding: true
  56. DerivePointerAlignment: false
  57. DisableFormat: false
  58. EmptyLineAfterAccessModifier: Never
  59. EmptyLineBeforeAccessModifier: Always
  60. FixNamespaceComments: true
  61. IncludeBlocks: Regroup
  62. IncludeCategories:
  63. - Regex: '<.+>'
  64. Priority: 1
  65. - Regex: '".+"'
  66. Priority: 2
  67. IndentAccessModifiers: false
  68. IndentCaseBlocks: true
  69. IndentCaseLabels: false
  70. IndentExternBlock: Indent
  71. IndentGotoLabels: false
  72. IndentPPDirectives: AfterHash
  73. IndentWidth: 4
  74. InsertTrailingCommas: Wrapped
  75. KeepEmptyLinesAtTheStartOfBlocks: false
  76. LambdaBodyIndentation: Signature
  77. Language: Cpp
  78. NamespaceIndentation: All
  79. PPIndentWidth: 4
  80. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  81. AllowAllConstructorInitializersOnNextLine: true
  82. PointerAlignment: Left
  83. ReferenceAlignment: Left
  84. ReflowComments: true
  85. SortIncludes: CaseInsensitive
  86. SortUsingDeclarations: true
  87. SpaceAfterCStyleCast: false
  88. SpaceAfterLogicalNot: false
  89. SpaceAfterTemplateKeyword: false
  90. SpaceBeforeAssignmentOperators: true
  91. SpaceBeforeCaseColon: false
  92. SpaceBeforeCpp11BracedList: false
  93. SpaceBeforeInheritanceColon: true
  94. SpaceBeforeParens: ControlStatements
  95. SpaceBeforeRangeBasedForLoopColon : true
  96. SpaceBeforeSquareBrackets: false
  97. SpaceInEmptyBlock: false
  98. SpaceInEmptyParentheses: false
  99. SpacesBeforeTrailingComments: 1
  100. SpacesInAngles: Never
  101. SpacesInCStyleCastParentheses: false
  102. SpacesInConditionalStatement: false
  103. SpacesInContainerLiterals: false
  104. SpacesInLineCommentPrefix:
  105. Minimum: 1
  106. Maximum: 1
  107. SpacesInParentheses: false
  108. SpacesInSquareBrackets: false
  109. Standard: Latest
  110. TabWidth: 4
  111. UseTab: Never