Advertisement
gabrieleb

.clang-format

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