.clang-format 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ---
  2. Language: Cpp
  3. Standard: Cpp11
  4. BasedOnStyle: WebKit
  5. AlignAfterOpenBracket: true
  6. AlignTrailingComments: true
  7. AllowAllArgumentsOnNextLine: false
  8. AllowShortFunctionsOnASingleLine: Inline
  9. AllowShortLambdasOnASingleLine: Empty
  10. AlwaysBreakTemplateDeclarations: Yes
  11. BinPackArguments: false
  12. BinPackParameters: false
  13. BraceWrapping:
  14. AfterCaseLabel: false
  15. AfterClass: true
  16. AfterControlStatement: false
  17. AfterEnum: false
  18. AfterFunction: true
  19. AfterNamespace: false
  20. AfterStruct: true
  21. AfterUnion: false
  22. AfterExternBlock: false
  23. BeforeCatch: false
  24. BeforeElse: false
  25. IndentBraces: false
  26. SplitEmptyFunction: false
  27. SplitEmptyRecord: false
  28. SplitEmptyNamespace: false
  29. BreakBeforeBinaryOperators: NonAssignment
  30. BreakBeforeBraces: Custom
  31. BreakInheritanceList: BeforeComma
  32. BreakConstructorInitializers: BeforeColon
  33. ColumnLimit: 100
  34. CommentPragmas: "^!|^:"
  35. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  36. ConstructorInitializerIndentWidth: 4
  37. Cpp11BracedListStyle: true
  38. FixNamespaceComments: true
  39. ForEachMacros:
  40. - BOOST_FOREACH
  41. - foreach
  42. - forever
  43. - Q_FOREACH
  44. - Q_FOREVER
  45. - QBENCHMARK
  46. - QBENCHMARK_ONCE
  47. IncludeBlocks: Regroup
  48. IncludeCategories:
  49. - Regex: '^<Q.*>'
  50. Priority: 2
  51. SortPriority: 0
  52. - Regex: '^<.*\.h>'
  53. Priority: 3
  54. SortPriority: 0
  55. - Regex: '^<.*>'
  56. Priority: 4
  57. SortPriority: 0
  58. - Regex: '.*'
  59. Priority: 1
  60. SortPriority: 0
  61. IndentPPDirectives: AfterHash
  62. NamespaceIndentation: None
  63. PenaltyReturnTypeOnItsOwnLine: 10
  64. SpaceAfterTemplateKeyword: false
  65. SpaceBeforeCpp11BracedList: false
  66. ...