.clang-format 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ---
  2. Language: Cpp
  3. # BasedOnStyle: LLVM
  4. AccessModifierOffset: -2
  5. AlignAfterOpenBracket: true
  6. AlignConsecutiveAssignments: false
  7. AlignConsecutiveDeclarations: false
  8. AlignEscapedNewlinesLeft: false
  9. AlignOperands: true
  10. AlignTrailingComments: true
  11. AllowAllParametersOfDeclarationOnNextLine: true
  12. AllowShortBlocksOnASingleLine: false
  13. AllowShortCaseLabelsOnASingleLine: false
  14. AllowShortIfStatementsOnASingleLine: false
  15. AllowShortLoopsOnASingleLine: false
  16. AllowShortFunctionsOnASingleLine: All
  17. AlwaysBreakAfterDefinitionReturnType: None
  18. AlwaysBreakAfterReturnType: None
  19. AlwaysBreakBeforeMultilineStrings: false
  20. AlwaysBreakTemplateDeclarations: false
  21. BreakBeforeBinaryOperators: false
  22. BreakBeforeBraces: Attach
  23. BreakBeforeTernaryOperators: true
  24. BreakConstructorInitializersBeforeComma: false
  25. BreakAfterJavaFieldAnnotations: false
  26. BreakStringLiterals: true
  27. BinPackParameters: true
  28. BinPackArguments: true
  29. ColumnLimit: 0
  30. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  31. ConstructorInitializerIndentWidth: 4
  32. DerivePointerAlignment: false
  33. ExperimentalAutoDetectBinPacking: false
  34. IndentCaseLabels: false
  35. IndentWrappedFunctionNames: false
  36. IndentFunctionDeclarationAfterType: false
  37. MaxEmptyLinesToKeep: 1
  38. KeepEmptyLinesAtTheStartOfBlocks: true
  39. NamespaceIndentation: None
  40. ObjCBlockIndentWidth: 2
  41. ObjCSpaceAfterProperty: false
  42. ObjCSpaceBeforeProtocolList: true
  43. PenaltyBreakBeforeFirstCallParameter: 19
  44. PenaltyBreakComment: 300
  45. PenaltyBreakString: 1000
  46. PenaltyBreakFirstLessLess: 120
  47. PenaltyExcessCharacter: 1000000
  48. PenaltyReturnTypeOnItsOwnLine: 60
  49. PointerAlignment: Right
  50. SpacesBeforeTrailingComments: 1
  51. Standard: Cpp11
  52. IndentWidth: 4
  53. TabWidth: 4
  54. UseTab: ForIndentation
  55. SpacesInParentheses: false
  56. SpacesInSquareBrackets: false
  57. SpacesInAngles: false
  58. SpaceInEmptyParentheses: false
  59. SpacesInCStyleCastParentheses: false
  60. SpaceAfterCStyleCast: true
  61. SpacesInContainerLiterals: true
  62. SpaceBeforeAssignmentOperators: true
  63. ContinuationIndentWidth: 4
  64. CommentPragmas: '^ IWYU pragma:'
  65. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
  66. SpaceBeforeParens: ControlStatements
  67. DisableFormat: false
  68. SortIncludes: false
  69. ...