Advertisement
Guest User

.clang-format

a guest
Mar 29th, 2022
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.93 KB | None | 0 0
  1. ---
  2. Language:       Cpp
  3. AccessModifierOffset: -4
  4. AlignAfterOpenBracket: Align
  5. AlignArrayOfStructures: None
  6. AlignConsecutiveMacros: None
  7. AlignConsecutiveAssignments: None
  8. AlignConsecutiveBitFields: AcrossEmptyLines
  9. #AlignConsecutiveDeclarations: None
  10. AlignConsecutiveDeclarations: true
  11. AlignEscapedNewlines: Left
  12. AlignOperands:  Align
  13. AlignTrailingComments: true
  14. AllowAllArgumentsOnNextLine: true
  15. AllowAllConstructorInitializersOnNextLine: true
  16. AllowAllParametersOfDeclarationOnNextLine: true
  17. AllowShortEnumsOnASingleLine: true
  18. AllowShortBlocksOnASingleLine: Never
  19. AllowShortCaseLabelsOnASingleLine: false
  20. AllowShortFunctionsOnASingleLine: Inline
  21. AllowShortLambdasOnASingleLine: All
  22. AllowShortIfStatementsOnASingleLine: WithoutElse
  23. AllowShortLoopsOnASingleLine: true
  24. AlwaysBreakAfterDefinitionReturnType: None
  25. AlwaysBreakAfterReturnType: None
  26. AlwaysBreakBeforeMultilineStrings: true
  27. AlwaysBreakTemplateDeclarations: Yes
  28. AttributeMacros:
  29.  - __capability
  30. BinPackArguments: true
  31. BinPackParameters: true
  32. BraceWrapping:
  33.   AfterCaseLabel: false
  34.   AfterClass:     false
  35.   AfterControlStatement: Never
  36.   AfterEnum:      false
  37.   AfterFunction:  false
  38.   AfterNamespace: false
  39.   AfterObjCDeclaration: false
  40.   AfterStruct:    false
  41.   AfterUnion:     false
  42.   AfterExternBlock: false
  43.   BeforeCatch:    false
  44.   BeforeElse:     false
  45.   BeforeLambdaBody: false
  46.   BeforeWhile:    false
  47.   IndentBraces:   false
  48.   SplitEmptyFunction: false
  49.   SplitEmptyRecord: false
  50.   SplitEmptyNamespace: false
  51. BreakBeforeBinaryOperators: None
  52. BreakBeforeConceptDeclarations: true
  53. BreakBeforeBraces: Custom
  54. BreakBeforeInheritanceComma: false
  55. BreakInheritanceList: AfterColon
  56. BreakBeforeTernaryOperators: true
  57. BreakConstructorInitializersBeforeComma: false
  58. BreakConstructorInitializers: AfterColon
  59. BreakAfterJavaFieldAnnotations: false
  60. BreakStringLiterals: true
  61. ColumnLimit:    80
  62. CommentPragmas: '^ IWYU pragma:'
  63. CompactNamespaces: false
  64. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  65. ConstructorInitializerIndentWidth: 4
  66. ContinuationIndentWidth: 4
  67. Cpp11BracedListStyle: true
  68. DeriveLineEnding: true
  69. DerivePointerAlignment: false
  70. DisableFormat:  false
  71. EmptyLineAfterAccessModifier: Never
  72. EmptyLineBeforeAccessModifier: LogicalBlock
  73. ExperimentalAutoDetectBinPacking: false
  74. FixNamespaceComments: true
  75. ForEachMacros:
  76.  - foreach
  77.   - Q_FOREACH
  78.   - BOOST_FOREACH
  79. IfMacros:
  80.  - KJ_IF_MAYBE
  81. IncludeBlocks:  Preserve
  82. IncludeCategories:
  83.   - Regex:          '^".*"'
  84.     Priority:       1
  85.     SortPriority:   0
  86.     CaseSensitive:  false
  87.   - Regex:          '^<.*/.*>'
  88.     Priority:       8
  89.     SortPriority:   0
  90.     CaseSensitive:  false
  91.   - Regex:          '^<ext/.*\.h>'
  92.     Priority:       9
  93.     SortPriority:   0
  94.     CaseSensitive:  false
  95.   - Regex:          '^<.*\.h>'
  96.     Priority:       7
  97.     SortPriority:   0
  98.     CaseSensitive:  false
  99.   - Regex:          '^<.*'
  100.     Priority:       2
  101.     SortPriority:   0
  102.     CaseSensitive:  false
  103.   - Regex:          '.*'
  104.     Priority:       1
  105.     SortPriority:   0
  106.     CaseSensitive:  false
  107. IncludeIsMainRegex: '([-_](test|unittest))?$'
  108. IncludeIsMainSourceRegex: ''
  109. IndentAccessModifiers: false
  110. IndentCaseLabels: false
  111. IndentCaseBlocks: false
  112. IndentGotoLabels: true
  113. IndentPPDirectives: AfterHash
  114. IndentExternBlock: AfterExternBlock
  115. IndentRequires: false
  116. IndentWidth:    4
  117. IndentWrappedFunctionNames: false
  118. InsertTrailingCommas: None
  119. JavaScriptQuotes: Leave
  120. JavaScriptWrapImports: true
  121. KeepEmptyLinesAtTheStartOfBlocks: false
  122. LambdaBodyIndentation: Signature
  123. MacroBlockBegin: ''
  124. MacroBlockEnd:  ''
  125. MaxEmptyLinesToKeep: 1
  126. NamespaceIndentation: Inner
  127. ObjCBinPackProtocolList: Never
  128. ObjCBlockIndentWidth: 2
  129. ObjCBreakBeforeNestedBlockParam: true
  130. ObjCSpaceAfterProperty: false
  131. ObjCSpaceBeforeProtocolList: true
  132. PenaltyBreakAssignment: 2
  133. PenaltyBreakBeforeFirstCallParameter: 1
  134. PenaltyBreakComment: 300
  135. PenaltyBreakFirstLessLess: 120
  136. PenaltyBreakString: 1000
  137. PenaltyBreakTemplateDeclaration: 10
  138. PenaltyExcessCharacter: 1000000
  139. PenaltyReturnTypeOnItsOwnLine: 200
  140. PenaltyIndentedWhitespace: 0
  141. PointerAlignment: Left
  142. PPIndentWidth:  -1
  143. RawStringFormats:
  144.   - Language:       Cpp
  145.     Delimiters:
  146.      - cc
  147.       - CC
  148.       - cpp
  149.       - Cpp
  150.       - CPP
  151.       - 'c++'
  152.       - 'C++'
  153.     CanonicalDelimiter: ''
  154.     BasedOnStyle:   google
  155.   - Language:       TextProto
  156.     Delimiters:
  157.      - pb
  158.       - PB
  159.       - proto
  160.       - PROTO
  161.     EnclosingFunctions:
  162.      - EqualsProto
  163.       - EquivToProto
  164.       - PARSE_PARTIAL_TEXT_PROTO
  165.       - PARSE_TEST_PROTO
  166.       - PARSE_TEXT_PROTO
  167.       - ParseTextOrDie
  168.       - ParseTextProtoOrDie
  169.     CanonicalDelimiter: ''
  170.     BasedOnStyle:   google
  171. ReferenceAlignment: Pointer
  172. ReflowComments: true
  173. ShortNamespaceLines: 1
  174. SortIncludes:   CaseSensitive
  175. SortJavaStaticImport: Before
  176. SortUsingDeclarations: true
  177. SpaceAfterCStyleCast: false
  178. SpaceAfterLogicalNot: false
  179. SpaceAfterTemplateKeyword: false
  180. SpaceBeforeAssignmentOperators: true
  181. SpaceBeforeCaseColon: false
  182. SpaceBeforeCpp11BracedList: false
  183. SpaceBeforeCtorInitializerColon: true
  184. SpaceBeforeInheritanceColon: true
  185. SpaceBeforeParens: Never
  186. SpaceAroundPointerQualifiers: Default
  187. SpaceBeforeRangeBasedForLoopColon: true
  188. SpaceInEmptyBlock: false
  189. SpaceInEmptyParentheses: false
  190. SpacesBeforeTrailingComments: 1
  191. SpacesInAngles: Never
  192. SpacesInConditionalStatement: false
  193. SpacesInContainerLiterals: false
  194. SpacesInCStyleCastParentheses: false
  195. SpacesInLineCommentPrefix:
  196.   Minimum:        1
  197.   Maximum:        -1
  198. SpacesInParentheses: false
  199. SpacesInSquareBrackets: false
  200. SpaceBeforeSquareBrackets: false
  201. BitFieldColonSpacing: Both
  202. Standard:       Latest
  203. StatementAttributeLikeMacros:
  204.  - Q_EMIT
  205. StatementMacros:
  206.  - Q_UNUSED
  207.   - QT_REQUIRE_VERSION
  208. TabWidth:       8
  209. UseCRLF:        false
  210. UseTab:         Never
  211. WhitespaceSensitiveMacros:
  212.  - STRINGIZE
  213.   - PP_STRINGIZE
  214.   - BOOST_PP_STRINGIZE
  215.   - NS_SWIFT_NAME
  216.   - CF_SWIFT_NAME
  217. ...
  218.  
  219.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement