_clang-format 2.6 KB

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