aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/deps/jemalloc/.clang-format
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:40:55 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:40:55 +0100
commit5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda (patch)
tree1acdfa5220cd13b7be43a2a01368e80d306473ca /examples/redis-unstable/deps/jemalloc/.clang-format
parentc7ab12bba64d9c20ccd79b132dac475f7bc3923e (diff)
downloadcrep-5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda.tar.gz
Add Redis source code for testing
Diffstat (limited to 'examples/redis-unstable/deps/jemalloc/.clang-format')
-rw-r--r--examples/redis-unstable/deps/jemalloc/.clang-format122
1 files changed, 122 insertions, 0 deletions
diff --git a/examples/redis-unstable/deps/jemalloc/.clang-format b/examples/redis-unstable/deps/jemalloc/.clang-format
new file mode 100644
index 0000000..719c03c
--- /dev/null
+++ b/examples/redis-unstable/deps/jemalloc/.clang-format
@@ -0,0 +1,122 @@
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
5AlignAfterOpenBracket: DontAlign
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
8AlignEscapedNewlines: Right
9AlignOperands: false
10AlignTrailingComments: false
11AllowAllParametersOfDeclarationOnNextLine: true
12AllowShortBlocksOnASingleLine: false
13AllowShortCaseLabelsOnASingleLine: false
14AllowShortFunctionsOnASingleLine: Empty
15AllowShortIfStatementsOnASingleLine: false
16AllowShortLoopsOnASingleLine: false
17AlwaysBreakAfterReturnType: AllDefinitions
18AlwaysBreakBeforeMultilineStrings: true
19# AlwaysBreakTemplateDeclarations: Yes
20BinPackArguments: true
21BinPackParameters: true
22BraceWrapping:
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
35BreakBeforeBinaryOperators: NonAssignment
36BreakBeforeBraces: Attach
37BreakBeforeTernaryOperators: true
38# BreakConstructorInitializers: BeforeColon
39# BreakInheritanceList: BeforeColon
40BreakStringLiterals: false
41ColumnLimit: 80
42# CommentPragmas: ''
43# CompactNamespaces: true
44# ConstructorInitializerAllOnOneLineOrOnePerLine: true
45# ConstructorInitializerIndentWidth: 4
46ContinuationIndentWidth: 2
47Cpp11BracedListStyle: true
48DerivePointerAlignment: false
49DisableFormat: false
50ExperimentalAutoDetectBinPacking: false
51FixNamespaceComments: true
52ForEachMacros: [ ql_foreach, qr_foreach, ]
53# IncludeBlocks: Preserve
54# IncludeCategories:
55# - Regex: '^<.*\.h(pp)?>'
56# Priority: 1
57# IncludeIsMainRegex: ''
58IndentCaseLabels: false
59IndentPPDirectives: AfterHash
60IndentWidth: 4
61IndentWrappedFunctionNames: false
62# JavaImportGroups: []
63# JavaScriptQuotes: Leave
64# JavaScriptWrapImports: True
65KeepEmptyLinesAtTheStartOfBlocks: false
66Language: Cpp
67MacroBlockBegin: ''
68MacroBlockEnd: ''
69MaxEmptyLinesToKeep: 1
70# NamespaceIndentation: None
71# ObjCBinPackProtocolList: Auto
72# ObjCBlockIndentWidth: 2
73# ObjCSpaceAfterProperty: false
74# ObjCSpaceBeforeProtocolList: false
75
76PenaltyBreakAssignment: 2
77PenaltyBreakBeforeFirstCallParameter: 1
78PenaltyBreakComment: 300
79PenaltyBreakFirstLessLess: 120
80PenaltyBreakString: 1000
81# PenaltyBreakTemplateDeclaration: 10
82PenaltyExcessCharacter: 1000000
83PenaltyReturnTypeOnItsOwnLine: 60
84PointerAlignment: Right
85# RawStringFormats:
86# - Language: TextProto
87# Delimiters:
88# - 'pb'
89# - 'proto'
90# EnclosingFunctions:
91# - 'PARSE_TEXT_PROTO'
92# BasedOnStyle: google
93# - Language: Cpp
94# Delimiters:
95# - 'cc'
96# - 'cpp'
97# BasedOnStyle: llvm
98# CanonicalDelimiter: 'cc'
99ReflowComments: true
100SortIncludes: false
101SpaceAfterCStyleCast: false
102# SpaceAfterTemplateKeyword: true
103SpaceBeforeAssignmentOperators: true
104# SpaceBeforeCpp11BracedList: false
105# SpaceBeforeCtorInitializerColon: true
106# SpaceBeforeInheritanceColon: true
107SpaceBeforeParens: ControlStatements
108# SpaceBeforeRangeBasedForLoopColon: true
109SpaceInEmptyParentheses: false
110SpacesBeforeTrailingComments: 2
111SpacesInAngles: false
112SpacesInCStyleCastParentheses: false
113# SpacesInContainerLiterals: false
114SpacesInParentheses: false
115SpacesInSquareBrackets: false
116# Standard: Cpp11
117# This is nominally supported in clang-format version 8, but not in the build
118# used by some of the core jemalloc developers.
119# StatementMacros: []
120TabWidth: 8
121UseTab: Never
122...