.clang-format 2.0 KB

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