.clang-format 2.6 KB

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