.clang-format 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ---
  2. Language: Cpp
  3. # BasedOnStyle: LLVM
  4. AccessModifierOffset: -2
  5. ConstructorInitializerIndentWidth: 2
  6. AlignEscapedNewlinesLeft: false
  7. AlignTrailingComments: true
  8. AllowAllParametersOfDeclarationOnNextLine: false
  9. AllowShortBlocksOnASingleLine: false
  10. AllowShortIfStatementsOnASingleLine: false
  11. AllowShortLoopsOnASingleLine: false
  12. AllowShortFunctionsOnASingleLine: Inline
  13. AlwaysBreakTemplateDeclarations: true
  14. AlwaysBreakBeforeMultilineStrings: true
  15. BreakBeforeBinaryOperators: true
  16. BreakBeforeTernaryOperators: true
  17. BreakConstructorInitializersBeforeComma: false
  18. BinPackParameters: false
  19. ColumnLimit: 100
  20. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  21. DerivePointerAlignment: false
  22. IndentCaseLabels: false
  23. IndentWrappedFunctionNames: false
  24. IndentFunctionDeclarationAfterType: false
  25. MaxEmptyLinesToKeep: 1
  26. KeepEmptyLinesAtTheStartOfBlocks: true
  27. NamespaceIndentation: None
  28. ObjCSpaceAfterProperty: false
  29. ObjCSpaceBeforeProtocolList: true
  30. PenaltyBreakBeforeFirstCallParameter: 190
  31. PenaltyBreakComment: 300
  32. PenaltyBreakString: 10000
  33. PenaltyBreakFirstLessLess: 120
  34. PenaltyExcessCharacter: 1000000
  35. PenaltyReturnTypeOnItsOwnLine: 1200
  36. PointerAlignment: Left
  37. SpacesBeforeTrailingComments: 1
  38. Cpp11BracedListStyle: true
  39. Standard: Auto
  40. IndentWidth: 2
  41. TabWidth: 4
  42. UseTab: Never
  43. BreakBeforeBraces: Attach
  44. SpacesInParentheses: false
  45. SpacesInAngles: false
  46. SpaceInEmptyParentheses: false
  47. SpacesInCStyleCastParentheses: false
  48. SpacesInContainerLiterals: true
  49. SpaceBeforeAssignmentOperators: true
  50. ContinuationIndentWidth: 4
  51. CommentPragmas: '^ IWYU pragma:'
  52. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
  53. SpaceBeforeParens: ControlStatements
  54. DisableFormat: false
  55. ...