cpp-format 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. BasedOnStyle: LLVM
  2. UseTab: Never
  3. IndentWidth: 4
  4. TabWidth: 4
  5. AllowShortIfStatementsOnASingleLine: false
  6. AllowShortBlocksOnASingleLine: Empty
  7. ColumnLimit: 80
  8. AccessModifierOffset: -4
  9. PointerAlignment: Left
  10. NamespaceIndentation: All
  11. SpaceBeforeParens: Never
  12. SpaceAfterTemplateKeyword: false
  13. AlwaysBreakTemplateDeclarations: Yes
  14. AllowShortFunctionsOnASingleLine: None
  15. FixNamespaceComments: false
  16. AllowShortCaseLabelsOnASingleLine: true
  17. IndentCaseLabels: true
  18. IndentCaseBlocks: false
  19. IncludeBlocks: Regroup
  20. IncludeCategories:
  21. - Regex: '^<.*\.h>'
  22. Priority: 2
  23. SortPriority: 0
  24. - Regex: '^<.*'
  25. Priority: 1
  26. SortPriority: 0
  27. - Regex: '.*'
  28. Priority: 3
  29. SortPriority: 0
  30. AlignAfterOpenBracket: AlwaysBreak
  31. AlignEscapedNewlines: LeftWithLastLine
  32. AlwaysBreakBeforeMultilineStrings: true
  33. BreakAfterReturnType: Automatic
  34. BreakConstructorInitializers: AfterColon
  35. BreakInheritanceList: AfterColon
  36. IntegerLiteralSeparator:
  37. Binary: 4
  38. BinaryMinDigits: 8
  39. Decimal: 3
  40. DecimalMinDigits: 5
  41. Hex: 4
  42. HexMinDigits: 8
  43. KeepEmptyLines:
  44. AtEndOfFile: false
  45. AtStartOfBlock: false
  46. AtStartOfFile: false
  47. LambdaBodyIndentation: OuterScope
  48. SeparateDefinitionBlocks: Always
  49. PenaltyReturnTypeOnItsOwnLine: 1000000