.clang-format 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ---
  2. Language: Cpp
  3. # BasedOnStyle: LLVM
  4. AccessModifierOffset: -4
  5. AlignAfterOpenBracket: Align
  6. AlignConsecutiveAssignments: false
  7. AlignConsecutiveDeclarations: false
  8. AlignEscapedNewlinesLeft: true
  9. AlignOperands: true
  10. AlignTrailingComments: true
  11. AllowAllParametersOfDeclarationOnNextLine: true
  12. AllowShortBlocksOnASingleLine: false
  13. AllowShortCaseLabelsOnASingleLine: true
  14. AllowShortFunctionsOnASingleLine: Inline
  15. AllowShortIfStatementsOnASingleLine: true
  16. AllowShortLoopsOnASingleLine: true
  17. AlwaysBreakAfterDefinitionReturnType: None
  18. AlwaysBreakAfterReturnType: None
  19. AlwaysBreakBeforeMultilineStrings: false
  20. AlwaysBreakTemplateDeclarations: false
  21. BinPackArguments: true
  22. BinPackParameters: true
  23. BraceWrapping:
  24. AfterClass: false
  25. AfterControlStatement: false
  26. AfterEnum: false
  27. AfterFunction: false
  28. AfterNamespace: false
  29. AfterObjCDeclaration: false
  30. AfterStruct: false
  31. AfterUnion: false
  32. BeforeCatch: true
  33. BeforeElse: true
  34. IndentBraces: false
  35. BreakBeforeBinaryOperators: None
  36. BreakBeforeBraces: Custom
  37. BreakBeforeTernaryOperators: true
  38. BreakConstructorInitializersBeforeComma: false
  39. BreakAfterJavaFieldAnnotations: false
  40. BreakStringLiterals: true
  41. ColumnLimit: 160
  42. CommentPragmas: '^ IWYU pragma:'
  43. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  44. ConstructorInitializerIndentWidth: 4
  45. ContinuationIndentWidth: 4
  46. Cpp11BracedListStyle: true
  47. DerivePointerAlignment: true
  48. DisableFormat: false
  49. ExperimentalAutoDetectBinPacking: false
  50. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
  51. IncludeCategories:
  52. - Regex: '.*'
  53. Priority: 1
  54. - Regex: '^".*/'
  55. Priority: 2
  56. - Regex: '^<)'
  57. Priority: 3
  58. IncludeIsMainRegex: '$'
  59. IndentCaseLabels: false
  60. IndentWidth: 4
  61. IndentWrappedFunctionNames: false
  62. JavaScriptQuotes: Leave
  63. JavaScriptWrapImports: true
  64. KeepEmptyLinesAtTheStartOfBlocks: true
  65. MacroBlockBegin: ''
  66. MacroBlockEnd: ''
  67. MaxEmptyLinesToKeep: 1
  68. NamespaceIndentation: None
  69. ObjCBlockIndentWidth: 4
  70. ObjCSpaceAfterProperty: false
  71. ObjCSpaceBeforeProtocolList: true
  72. PenaltyBreakBeforeFirstCallParameter: 19
  73. PenaltyBreakComment: 300
  74. PenaltyBreakFirstLessLess: 120
  75. PenaltyBreakString: 1000
  76. PenaltyExcessCharacter: 1000000
  77. PenaltyReturnTypeOnItsOwnLine: 60
  78. PointerAlignment: Right
  79. ReflowComments: true
  80. SortIncludes: false
  81. SpaceAfterCStyleCast: false
  82. SpaceBeforeAssignmentOperators: true
  83. SpaceBeforeParens: ControlStatements
  84. SpaceInEmptyParentheses: false
  85. SpacesBeforeTrailingComments: 1
  86. SpacesInAngles: false
  87. SpacesInContainerLiterals: true
  88. SpacesInCStyleCastParentheses: false
  89. SpacesInParentheses: false
  90. SpacesInSquareBrackets: false
  91. Standard: Cpp11
  92. TabWidth: 4
  93. UseTab: Never
  94. ...