1
0

.clang-format 1.9 KB

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