.clang-format 1.7 KB

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