.clang-format 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. ---
  2. Language: Cpp
  3. AccessModifierOffset: -2
  4. AlignAfterOpenBracket: Align
  5. AlignConsecutiveAssignments: false
  6. AlignConsecutiveDeclarations: false
  7. AlignEscapedNewlines: Right
  8. AlignOperands: true
  9. AlignTrailingComments: true
  10. AllowAllParametersOfDeclarationOnNextLine: true
  11. AllowShortBlocksOnASingleLine: false
  12. AllowShortCaseLabelsOnASingleLine: false
  13. AllowShortFunctionsOnASingleLine: All
  14. AllowShortIfStatementsOnASingleLine: false
  15. AllowShortLoopsOnASingleLine: false
  16. AlwaysBreakAfterDefinitionReturnType: None
  17. AlwaysBreakAfterReturnType: None
  18. AlwaysBreakBeforeMultilineStrings: false
  19. AlwaysBreakTemplateDeclarations: MultiLine
  20. BinPackArguments: true
  21. BinPackParameters: true
  22. BraceWrapping:
  23. AfterClass: false
  24. AfterControlStatement: false
  25. AfterEnum: false
  26. AfterFunction: true
  27. AfterNamespace: false
  28. AfterObjCDeclaration: false
  29. AfterStruct: false
  30. AfterUnion: false
  31. AfterExternBlock: false
  32. BeforeCatch: true
  33. BeforeElse: true
  34. IndentBraces: false
  35. SplitEmptyFunction: true
  36. SplitEmptyRecord: true
  37. SplitEmptyNamespace: true
  38. BreakBeforeBinaryOperators: None
  39. BreakBeforeBraces: Stroustrup
  40. BreakBeforeInheritanceComma: false
  41. BreakInheritanceList: BeforeColon
  42. BreakBeforeTernaryOperators: true
  43. BreakConstructorInitializersBeforeComma: false
  44. BreakConstructorInitializers: BeforeColon
  45. BreakAfterJavaFieldAnnotations: false
  46. BreakStringLiterals: true
  47. ColumnLimit: 80
  48. CommentPragmas: '^ IWYU pragma:'
  49. CompactNamespaces: false
  50. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  51. ConstructorInitializerIndentWidth: 4
  52. ContinuationIndentWidth: 4
  53. Cpp11BracedListStyle: true
  54. DerivePointerAlignment: false
  55. DisableFormat: false
  56. ExperimentalAutoDetectBinPacking: false
  57. FixNamespaceComments: true
  58. ForEachMacros:
  59. - foreach
  60. - Q_FOREACH
  61. - BOOST_FOREACH
  62. IncludeBlocks: Preserve
  63. IncludeCategories:
  64. - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
  65. Priority: 2
  66. - Regex: '^(<|"(gtest|isl|json)/)'
  67. Priority: 3
  68. - Regex: '.*'
  69. Priority: 1
  70. IncludeIsMainRegex: '$'
  71. IndentCaseLabels: false
  72. IndentPPDirectives: AfterHash
  73. IndentWidth: 2
  74. IndentWrappedFunctionNames: false
  75. JavaScriptQuotes: Leave
  76. JavaScriptWrapImports: true
  77. KeepEmptyLinesAtTheStartOfBlocks: true
  78. MacroBlockBegin: ''
  79. MacroBlockEnd: ''
  80. MaxEmptyLinesToKeep: 1
  81. NamespaceIndentation: None
  82. ObjCBinPackProtocolList: Auto
  83. ObjCBlockIndentWidth: 2
  84. ObjCSpaceAfterProperty: false
  85. ObjCSpaceBeforeProtocolList: true
  86. PenaltyBreakAssignment: 2
  87. PenaltyBreakBeforeFirstCallParameter: 19
  88. PenaltyBreakComment: 300
  89. PenaltyBreakFirstLessLess: 120
  90. PenaltyBreakString: 1000
  91. PenaltyBreakTemplateDeclaration: 10
  92. PenaltyExcessCharacter: 1000000
  93. PenaltyReturnTypeOnItsOwnLine: 60
  94. PointerAlignment: Left
  95. ReflowComments: true
  96. SortIncludes: false
  97. SortUsingDeclarations: true
  98. SpaceAfterCStyleCast: false
  99. SpaceAfterTemplateKeyword: true
  100. SpaceBeforeAssignmentOperators: true
  101. SpaceBeforeCpp11BracedList: false
  102. SpaceBeforeCtorInitializerColon: true
  103. SpaceBeforeInheritanceColon: true
  104. SpaceBeforeParens: ControlStatements
  105. SpaceBeforeRangeBasedForLoopColon: true
  106. SpaceInEmptyParentheses: false
  107. SpacesBeforeTrailingComments: 1
  108. SpacesInAngles: false
  109. SpacesInContainerLiterals: true
  110. SpacesInCStyleCastParentheses: false
  111. SpacesInParentheses: false
  112. SpacesInSquareBrackets: false
  113. Standard: Cpp11
  114. StatementMacros:
  115. - Q_UNUSED
  116. - QT_REQUIRE_VERSION
  117. TabWidth: 8
  118. UseTab: Never
  119. ...