.clang-format 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Language: Cpp
  2. BasedOnStyle : LLVM
  3. Standard : Cpp03
  4. # BasedOnStyle: LLVM
  5. BraceWrapping:
  6. AfterClass: false
  7. AfterControlStatement: false
  8. AfterEnum: false
  9. AfterFunction: false
  10. AfterNamespace: false
  11. AfterObjCDeclaration: false
  12. AfterStruct: false
  13. AfterUnion: false
  14. BeforeCatch: false
  15. BeforeElse: false
  16. IndentBraces: true
  17. ConstructorInitializerIndentWidth: 4
  18. AlignEscapedNewlinesLeft: false
  19. AlignTrailingComments: true
  20. AllowShortBlocksOnASingleLine: true
  21. AllowShortCaseLabelsOnASingleLine: false
  22. AllowShortIfStatementsOnASingleLine: false
  23. AllowShortLoopsOnASingleLine: false
  24. AlwaysBreakAfterDefinitionReturnType: false
  25. AlwaysBreakTemplateDeclarations: true
  26. AlwaysBreakBeforeMultilineStrings: true
  27. BreakBeforeTernaryOperators: true
  28. BreakConstructorInitializersBeforeComma: false
  29. ColumnLimit: 120
  30. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  31. DerivePointerAlignment: false
  32. ExperimentalAutoDetectBinPacking: false
  33. IndentCaseLabels: true
  34. IndentWrappedFunctionNames: false
  35. IndentFunctionDeclarationAfterType: false
  36. MaxEmptyLinesToKeep: 1
  37. KeepEmptyLinesAtTheStartOfBlocks: true
  38. NamespaceIndentation: None
  39. ObjCSpaceAfterProperty: false
  40. ObjCSpaceBeforeProtocolList: false
  41. PenaltyExcessCharacter : 500
  42. PenaltyReturnTypeOnItsOwnLine : 120
  43. PenaltyBreakBeforeFirstCallParameter : 100
  44. PenaltyBreakString : 20
  45. PenaltyBreakComment : 10
  46. PenaltyBreakFirstLessLess : 0
  47. SpacesBeforeTrailingComments: 1
  48. Cpp11BracedListStyle: true
  49. IndentWidth: 4
  50. TabWidth: 4
  51. UseTab: Never
  52. BreakBeforeBraces: Linux
  53. SpacesInParentheses: false
  54. SpacesInSquareBrackets: false
  55. SpacesInAngles : false
  56. SpaceInEmptyParentheses : false
  57. SpacesInCStyleCastParentheses : false
  58. SpaceAfterCStyleCast : false
  59. SpacesInContainerLiterals : true
  60. SpaceBeforeAssignmentOperators : true
  61. ContinuationIndentWidth : 4
  62. SpaceBeforeParens : ControlStatements
  63. DisableFormat : false
  64. AccessModifierOffset : -4
  65. PointerAlignment : Middle
  66. AlignAfterOpenBracket : Align
  67. AllowAllParametersOfDeclarationOnNextLine : true
  68. BinPackArguments : false
  69. BinPackParameters : false
  70. AlignOperands : true
  71. AlignConsecutiveAssignments : false
  72. AllowShortFunctionsOnASingleLine : None
  73. BreakBeforeBinaryOperators : None
  74. AlwaysBreakAfterReturnType : None
  75. SortIncludes : false