You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

.clang-format 2.8 kB

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