.clang-format 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. ---
  2. BasedOnStyle: LLVM
  3. BreakBeforeBraces: Stroustrup
  4. IndentWidth: 4
  5. TabWidth: 4
  6. AlignAfterOpenBracket: AlwaysBreak
  7. AlignConsecutiveMacros: 'true'
  8. AlignConsecutiveAssignments: 'false'
  9. AlignConsecutiveDeclarations: 'false'
  10. AlignEscapedNewlines: Right
  11. AlignOperands: 'true'
  12. AlignTrailingComments: 'true'
  13. AllowAllArgumentsOnNextLine: 'false'
  14. AllowAllConstructorInitializersOnNextLine: 'false'
  15. AllowAllParametersOfDeclarationOnNextLine: 'false'
  16. AllowShortBlocksOnASingleLine: 'true'
  17. AllowShortCaseLabelsOnASingleLine: 'false'
  18. AllowShortFunctionsOnASingleLine: None
  19. AllowShortIfStatementsOnASingleLine: Never
  20. AlwaysBreakAfterReturnType: None
  21. BinPackArguments: 'false'
  22. BinPackParameters: 'false'
  23. BreakBeforeBinaryOperators: NonAssignment
  24. BreakBeforeTernaryOperators: 'true'
  25. BreakConstructorInitializers: BeforeComma
  26. BreakInheritanceList: BeforeComma
  27. CompactNamespaces: 'false'
  28. ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
  29. ConstructorInitializerIndentWidth: '4'
  30. ContinuationIndentWidth: '4'
  31. Cpp11BracedListStyle: 'false'
  32. FixNamespaceComments: 'true'
  33. IncludeBlocks: Regroup
  34. IndentCaseLabels: 'true'
  35. IndentPPDirectives: None
  36. IndentWrappedFunctionNames: 'false'
  37. KeepEmptyLinesAtTheStartOfBlocks: 'false'
  38. MaxEmptyLinesToKeep: '1'
  39. NamespaceIndentation: None
  40. PointerAlignment: Left
  41. ReflowComments: 'true'
  42. SortIncludes: 'true'
  43. SortUsingDeclarations: 'true'
  44. SpaceAfterCStyleCast: 'false'
  45. SpaceAfterLogicalNot: 'true'
  46. SpaceAfterTemplateKeyword: 'true'
  47. SpaceBeforeAssignmentOperators: 'true'
  48. SpaceBeforeCpp11BracedList: 'true'
  49. SpaceBeforeCtorInitializerColon: 'true'
  50. SpaceBeforeInheritanceColon: 'true'
  51. SpaceBeforeParens: ControlStatements
  52. SpaceBeforeRangeBasedForLoopColon: 'true'
  53. SpaceInEmptyParentheses: 'false'
  54. SpacesBeforeTrailingComments: '3'
  55. SpacesInAngles: 'false'
  56. SpacesInCStyleCastParentheses: 'false'
  57. SpacesInContainerLiterals: 'true'
  58. SpacesInParentheses: 'false'
  59. SpacesInSquareBrackets: 'false'
  60. UseTab: 'Always'
  61. ---
  62. Language: Cpp
  63. Standard: Cpp03
  64. ColumnLimit: '240'
  65. ---
  66. Language: ObjC
  67. ColumnLimit: '240'
  68. ---
  69. Language: Java
  70. ColumnLimit: '240'
  71. ---
  72. Language: CSharp
  73. ColumnLimit: '240'
  74. ...