cpp-format 4.4 KB

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