.clang-format 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Copyright (c) 2015-present, Parse, LLC.
  2. # All rights reserved.
  3. #
  4. # This source code is licensed under the BSD-style license found in the
  5. # LICENSE file in the root directory of this source tree. An additional grant
  6. # of patent rights can be found in the PATENTS file in the same directory.
  7. ---
  8. Language: Cpp
  9. BasedOnStyle: LLVM
  10. AccessModifierOffset: -2
  11. AlignAfterOpenBracket: true
  12. AlignEscapedNewlinesLeft: true
  13. AlignOperands: true
  14. AlignTrailingComments: false
  15. AllowAllParametersOfDeclarationOnNextLine: false
  16. AllowShortBlocksOnASingleLine: false
  17. AllowShortCaseLabelsOnASingleLine: false
  18. AllowShortIfStatementsOnASingleLine: true
  19. AllowShortLoopsOnASingleLine: false
  20. AllowShortFunctionsOnASingleLine: false
  21. AlwaysBreakAfterDefinitionReturnType: false
  22. AlwaysBreakTemplateDeclarations: false
  23. AlwaysBreakBeforeMultilineStrings: false
  24. BreakBeforeBinaryOperators: None
  25. BreakBeforeTernaryOperators: true
  26. BreakConstructorInitializersBeforeComma: true
  27. BinPackParameters: true
  28. BinPackArguments: true
  29. ColumnLimit: 0
  30. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  31. ConstructorInitializerIndentWidth: 4
  32. DerivePointerAlignment: true
  33. ExperimentalAutoDetectBinPacking: true
  34. IndentCaseLabels: true
  35. IndentWrappedFunctionNames: true
  36. IndentFunctionDeclarationAfterType: true
  37. MaxEmptyLinesToKeep: 1
  38. KeepEmptyLinesAtTheStartOfBlocks: true
  39. NamespaceIndentation: None
  40. ObjCBlockIndentWidth: 4
  41. ObjCSpaceAfterProperty: true
  42. ObjCSpaceBeforeProtocolList: true
  43. PenaltyBreakBeforeFirstCallParameter: 19
  44. PenaltyBreakComment: 300
  45. PenaltyBreakString: 1000
  46. PenaltyBreakFirstLessLess: 140
  47. PenaltyExcessCharacter: 1000000
  48. PenaltyReturnTypeOnItsOwnLine: 120
  49. PointerAlignment: Right
  50. SpacesBeforeTrailingComments: 1
  51. Cpp11BracedListStyle: true
  52. Standard: Cpp11
  53. IndentWidth: 4
  54. TabWidth: 4
  55. UseTab: Never
  56. BreakBeforeBraces: Attach
  57. SpacesInParentheses: false
  58. SpacesInSquareBrackets: false
  59. SpacesInAngles: false
  60. SpaceInEmptyParentheses: false
  61. SpacesInCStyleCastParentheses: false
  62. SpaceAfterCStyleCast: false
  63. SpacesInContainerLiterals: true
  64. SpaceBeforeAssignmentOperators: true
  65. ContinuationIndentWidth: 4
  66. CommentPragmas: '^ IWYU pragma:'
  67. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
  68. SpaceBeforeParens: ControlStatements
  69. DisableFormat: false
  70. ...