.clang-format 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # jemalloc targets clang-format version 8. We include every option it supports
  2. # here, but comment out the ones that aren't relevant for us.
  3. ---
  4. # AccessModifierOffset: -2
  5. AlignAfterOpenBracket: DontAlign
  6. AlignConsecutiveAssignments: false
  7. AlignConsecutiveDeclarations: false
  8. AlignEscapedNewlines: Right
  9. AlignOperands: false
  10. AlignTrailingComments: false
  11. AllowAllParametersOfDeclarationOnNextLine: true
  12. AllowShortBlocksOnASingleLine: false
  13. AllowShortCaseLabelsOnASingleLine: false
  14. AllowShortFunctionsOnASingleLine: Empty
  15. AllowShortIfStatementsOnASingleLine: false
  16. AllowShortLoopsOnASingleLine: false
  17. AlwaysBreakAfterReturnType: AllDefinitions
  18. AlwaysBreakBeforeMultilineStrings: true
  19. # AlwaysBreakTemplateDeclarations: Yes
  20. BinPackArguments: true
  21. BinPackParameters: true
  22. BraceWrapping:
  23. AfterClass: false
  24. AfterControlStatement: false
  25. AfterEnum: false
  26. AfterFunction: false
  27. AfterNamespace: false
  28. AfterObjCDeclaration: false
  29. AfterStruct: false
  30. AfterUnion: false
  31. BeforeCatch: false
  32. BeforeElse: false
  33. IndentBraces: false
  34. # BreakAfterJavaFieldAnnotations: true
  35. BreakBeforeBinaryOperators: NonAssignment
  36. BreakBeforeBraces: Attach
  37. BreakBeforeTernaryOperators: true
  38. # BreakConstructorInitializers: BeforeColon
  39. # BreakInheritanceList: BeforeColon
  40. BreakStringLiterals: false
  41. ColumnLimit: 80
  42. # CommentPragmas: ''
  43. # CompactNamespaces: true
  44. # ConstructorInitializerAllOnOneLineOrOnePerLine: true
  45. # ConstructorInitializerIndentWidth: 4
  46. ContinuationIndentWidth: 2
  47. Cpp11BracedListStyle: true
  48. DerivePointerAlignment: false
  49. DisableFormat: false
  50. ExperimentalAutoDetectBinPacking: false
  51. FixNamespaceComments: true
  52. ForEachMacros: [ ql_foreach, qr_foreach, ]
  53. # IncludeBlocks: Preserve
  54. # IncludeCategories:
  55. # - Regex: '^<.*\.h(pp)?>'
  56. # Priority: 1
  57. # IncludeIsMainRegex: ''
  58. IndentCaseLabels: false
  59. IndentPPDirectives: AfterHash
  60. IndentWidth: 4
  61. IndentWrappedFunctionNames: false
  62. # JavaImportGroups: []
  63. # JavaScriptQuotes: Leave
  64. # JavaScriptWrapImports: True
  65. KeepEmptyLinesAtTheStartOfBlocks: false
  66. Language: Cpp
  67. MacroBlockBegin: ''
  68. MacroBlockEnd: ''
  69. MaxEmptyLinesToKeep: 1
  70. # NamespaceIndentation: None
  71. # ObjCBinPackProtocolList: Auto
  72. # ObjCBlockIndentWidth: 2
  73. # ObjCSpaceAfterProperty: false
  74. # ObjCSpaceBeforeProtocolList: false
  75. PenaltyBreakAssignment: 2
  76. PenaltyBreakBeforeFirstCallParameter: 1
  77. PenaltyBreakComment: 300
  78. PenaltyBreakFirstLessLess: 120
  79. PenaltyBreakString: 1000
  80. # PenaltyBreakTemplateDeclaration: 10
  81. PenaltyExcessCharacter: 1000000
  82. PenaltyReturnTypeOnItsOwnLine: 60
  83. PointerAlignment: Right
  84. # RawStringFormats:
  85. # - Language: TextProto
  86. # Delimiters:
  87. # - 'pb'
  88. # - 'proto'
  89. # EnclosingFunctions:
  90. # - 'PARSE_TEXT_PROTO'
  91. # BasedOnStyle: google
  92. # - Language: Cpp
  93. # Delimiters:
  94. # - 'cc'
  95. # - 'cpp'
  96. # BasedOnStyle: llvm
  97. # CanonicalDelimiter: 'cc'
  98. ReflowComments: true
  99. SortIncludes: false
  100. SpaceAfterCStyleCast: false
  101. # SpaceAfterTemplateKeyword: true
  102. SpaceBeforeAssignmentOperators: true
  103. # SpaceBeforeCpp11BracedList: false
  104. # SpaceBeforeCtorInitializerColon: true
  105. # SpaceBeforeInheritanceColon: true
  106. SpaceBeforeParens: ControlStatements
  107. # SpaceBeforeRangeBasedForLoopColon: true
  108. SpaceInEmptyParentheses: false
  109. SpacesBeforeTrailingComments: 2
  110. SpacesInAngles: false
  111. SpacesInCStyleCastParentheses: false
  112. # SpacesInContainerLiterals: false
  113. SpacesInParentheses: false
  114. SpacesInSquareBrackets: false
  115. # Standard: Cpp11
  116. # This is nominally supported in clang-format version 8, but not in the build
  117. # used by some of the core jemalloc developers.
  118. # StatementMacros: []
  119. TabWidth: 8
  120. UseTab: Never
  121. ...