.clang-format 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Language: Cpp
  2. # BasedOnStyle: Google
  3. AccessModifierOffset: -1
  4. AlignAfterOpenBracket: Align
  5. AlignConsecutiveAssignments: false
  6. AlignConsecutiveDeclarations: false
  7. AlignEscapedNewlinesLeft: true
  8. AlignOperands: true
  9. AlignTrailingComments: true
  10. AllowAllParametersOfDeclarationOnNextLine: true
  11. AllowShortBlocksOnASingleLine: false
  12. AllowShortCaseLabelsOnASingleLine: false
  13. AllowShortFunctionsOnASingleLine: All
  14. AllowShortIfStatementsOnASingleLine: true
  15. AllowShortLoopsOnASingleLine: true
  16. AlwaysBreakAfterDefinitionReturnType: None
  17. AlwaysBreakAfterReturnType: None
  18. AlwaysBreakBeforeMultilineStrings: true
  19. AlwaysBreakTemplateDeclarations: true
  20. BinPackArguments: true
  21. BinPackParameters: true
  22. BraceWrapping:
  23. AfterClass: false
  24. AfterControlStatement: false
  25. AfterEnum: false
  26. AfterFunction: false
  27. AfterNamespace: false
  28. AfterObjCDeclaration: false
  29. AfterStruct: false
  30. AfterUnion: false
  31. BeforeCatch: false
  32. BeforeElse: false
  33. IndentBraces: false
  34. BreakBeforeBinaryOperators: None
  35. BreakBeforeBraces: Attach
  36. BreakBeforeTernaryOperators: true
  37. BreakConstructorInitializersBeforeComma: false
  38. ColumnLimit: 80
  39. CommentPragmas: '^ IWYU pragma:'
  40. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  41. ConstructorInitializerIndentWidth: 4
  42. ContinuationIndentWidth: 4
  43. Cpp11BracedListStyle: true
  44. DerivePointerAlignment: true
  45. DisableFormat: false
  46. ExperimentalAutoDetectBinPacking: false
  47. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
  48. IncludeCategories:
  49. - Regex: '^<.*\.h>'
  50. Priority: 1
  51. - Regex: '^<.*'
  52. Priority: 2
  53. - Regex: '.*'
  54. Priority: 3
  55. IndentCaseLabels: true
  56. IndentWidth: 2
  57. IndentWrappedFunctionNames: false
  58. KeepEmptyLinesAtTheStartOfBlocks: false
  59. MacroBlockBegin: ''
  60. MacroBlockEnd: ''
  61. MaxEmptyLinesToKeep: 1
  62. NamespaceIndentation: None
  63. ObjCBlockIndentWidth: 2
  64. ObjCSpaceAfterProperty: false
  65. ObjCSpaceBeforeProtocolList: false
  66. PenaltyBreakBeforeFirstCallParameter: 1
  67. PenaltyBreakComment: 300
  68. PenaltyBreakFirstLessLess: 120
  69. PenaltyBreakString: 1000
  70. PenaltyExcessCharacter: 1000000
  71. PenaltyReturnTypeOnItsOwnLine: 200
  72. PointerAlignment: Left
  73. ReflowComments: true
  74. SortIncludes: true
  75. SpaceAfterCStyleCast: false
  76. SpaceBeforeAssignmentOperators: true
  77. SpaceBeforeParens: ControlStatements
  78. SpaceInEmptyParentheses: false
  79. SpacesBeforeTrailingComments: 2
  80. SpacesInAngles: false
  81. SpacesInContainerLiterals: true
  82. SpacesInCStyleCastParentheses: false
  83. SpacesInParentheses: false
  84. SpacesInSquareBrackets: false
  85. Standard: Auto
  86. TabWidth: 8
  87. UseTab: Never