.clang-format 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Language: Cpp
  2. AccessModifierOffset: -4
  3. AlignAfterOpenBracket: Align
  4. AlignConsecutiveAssignments: false
  5. AlignConsecutiveDeclarations: false
  6. AlignOperands: true
  7. AlignTrailingComments: false
  8. AllowAllParametersOfDeclarationOnNextLine: false
  9. AllowShortBlocksOnASingleLine: false
  10. AllowShortCaseLabelsOnASingleLine: false
  11. AllowShortFunctionsOnASingleLine: None
  12. AllowShortIfStatementsOnASingleLine: false
  13. AllowShortLoopsOnASingleLine: false
  14. AlwaysBreakAfterDefinitionReturnType: None
  15. AlwaysBreakAfterReturnType: None
  16. AlwaysBreakBeforeMultilineStrings: false
  17. AlwaysBreakTemplateDeclarations: false
  18. BinPackArguments: true
  19. BinPackParameters: true
  20. BraceWrapping:
  21. AfterClass: false
  22. AfterControlStatement: false
  23. AfterEnum: false
  24. AfterFunction: true
  25. AfterNamespace: true
  26. AfterObjCDeclaration: false
  27. AfterStruct: false
  28. AfterUnion: false
  29. AfterExternBlock: false
  30. BeforeCatch: false
  31. BeforeElse: false
  32. IndentBraces: false
  33. SplitEmptyFunction: true
  34. SplitEmptyRecord: true
  35. SplitEmptyNamespace: true
  36. BreakBeforeBinaryOperators: None
  37. BreakBeforeBraces: Custom
  38. BreakBeforeInheritanceComma: false
  39. BreakBeforeTernaryOperators: false
  40. BreakConstructorInitializersBeforeComma: false
  41. BreakConstructorInitializers: BeforeComma
  42. BreakAfterJavaFieldAnnotations: false
  43. BreakStringLiterals: false
  44. ColumnLimit: 80
  45. CommentPragmas: '^ IWYU pragma:'
  46. CompactNamespaces: false
  47. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  48. ConstructorInitializerIndentWidth: 4
  49. ContinuationIndentWidth: 4
  50. Cpp11BracedListStyle: false
  51. DerivePointerAlignment: false
  52. DisableFormat: false
  53. ExperimentalAutoDetectBinPacking: false
  54. FixNamespaceComments: false
  55. IncludeBlocks: Preserve
  56. IncludeCategories:
  57. - Regex: '.*'
  58. Priority: 1
  59. IncludeIsMainRegex: '(Test)?$'
  60. IndentCaseLabels: false
  61. IndentPPDirectives: None
  62. IndentWidth: 4
  63. IndentWrappedFunctionNames: false
  64. KeepEmptyLinesAtTheStartOfBlocks: false
  65. MacroBlockBegin: ''
  66. MacroBlockEnd: ''
  67. MaxEmptyLinesToKeep: 1
  68. NamespaceIndentation: None
  69. PointerAlignment: Right
  70. ReflowComments: false
  71. SortIncludes: false
  72. SortUsingDeclarations: false
  73. SpaceAfterCStyleCast: false
  74. SpaceAfterTemplateKeyword: true
  75. SpaceBeforeAssignmentOperators: true
  76. SpaceBeforeCtorInitializerColon: true
  77. SpaceBeforeInheritanceColon: true
  78. SpaceBeforeParens: ControlStatements
  79. SpaceBeforeRangeBasedForLoopColon: true
  80. SpaceInEmptyParentheses: false
  81. SpacesBeforeTrailingComments: 1
  82. SpacesInAngles: false
  83. SpacesInContainerLiterals: false
  84. SpacesInCStyleCastParentheses: false
  85. SpacesInParentheses: false
  86. SpacesInSquareBrackets: false
  87. Standard: Cpp03
  88. TabWidth: 4
  89. UseTab: Never