docs: Add supported versions and fix-backport policy
[lttng-tools.git] / .clang-format
1 AccessModifierOffset: -8
2 AlignAfterOpenBracket: Align
3 AlignConsecutiveAssignments: false
4 AlignConsecutiveDeclarations: false
5 AlignConsecutiveMacros: Consecutive
6 AlignEscapedNewlines: Left
7 AlignOperands: false
8 AlignTrailingComments: false
9 AllowAllConstructorInitializersOnNextLine: true
10 AllowShortBlocksOnASingleLine: false
11 AllowShortCaseLabelsOnASingleLine: false
12 AllowShortFunctionsOnASingleLine: None
13 AllowShortIfStatementsOnASingleLine: false
14 AllowShortLoopsOnASingleLine: false
15 AlwaysBreakAfterReturnType: None
16 AlwaysBreakBeforeMultilineStrings: false
17 AlwaysBreakTemplateDeclarations: Yes
18 BinPackArguments: false
19 BinPackParameters: false
20 BitFieldColonSpacing: None
21 BreakBeforeBraces: Custom
22 BreakConstructorInitializers: AfterColon
23 BraceWrapping:
24 AfterControlStatement: false
25 AfterEnum: false
26 AfterFunction: true
27 AfterNamespace: false
28 AfterStruct: false
29 AfterUnion: false
30 AfterExternBlock: false
31 AfterCaseLabel: true
32 BeforeCatch: false
33 BeforeElse: false
34 IndentBraces: false
35 SplitEmptyFunction: true
36 BreakBeforeBinaryOperators: None
37 BreakBeforeTernaryOperators: false
38 BreakConstructorInitializers: AfterColon
39 BreakStringLiterals: false
40 ColumnLimit: 100
41 ConstructorInitializerAllOnOneLineOrOnePerLine: true
42 ConstructorInitializerIndentWidth: 8
43 ContinuationIndentWidth: 8
44 Cpp11BracedListStyle: false
45 DerivePointerAlignment: false
46 DisableFormat: false
47 EmptyLineBeforeAccessModifier: LogicalBlock
48 FixNamespaceComments: true
49 ForEachMacros:
50 - 'cds_lfht_for_each_entry'
51 - 'cds_lfht_for_each_entry_safe'
52 - 'cds_lfht_for_each_duplicate'
53 - 'cds_list_for_each_entry'
54 - 'cds_list_for_each_entry_safe'
55 - 'for_each_action_mutable'
56 - 'for_each_action_const'
57
58 IncludeBlocks: Regroup
59 IncludeCategories:
60 - Regex: '".*"'
61 Priority: 0
62 - Regex: '<common/.*>'
63 Priority: 1
64 - Regex: '<lttng/.*>'
65 Priority: 2
66 - Regex: '<vendor/.*>'
67 Priority: 3
68 - Regex: '<.*>'
69 Priority: 9
70
71 IncludeIsMainRegex: '(Test)?$'
72 IndentCaseLabels: false
73 IndentPPDirectives: None
74 IndentWidth: 8
75 IndentWrappedFunctionNames: false
76 KeepEmptyLinesAtTheStartOfBlocks: false
77 MacroBlockBegin: ''
78 MacroBlockEnd: ''
79 MaxEmptyLinesToKeep: 1
80 NamespaceIndentation: None
81
82 # Taken from git's rules
83 PenaltyBreakAssignment: 10
84 PenaltyBreakBeforeFirstCallParameter: 30
85 PenaltyBreakComment: 10
86 PenaltyBreakString: 10
87 PenaltyExcessCharacter: 100
88 PenaltyReturnTypeOnItsOwnLine: 60
89
90 PointerAlignment: Right
91 ReferenceAlignment: Left
92 ReflowComments: true
93 SortIncludes: true
94 SpaceAfterCStyleCast: true
95 SpaceBeforeAssignmentOperators: true
96 SpaceBeforeParens: ControlStatements
97 SpaceInEmptyParentheses: false
98 SpacesBeforeTrailingComments: 1
99 SpacesInContainerLiterals: false
100 SpacesInCStyleCastParentheses: false
101 SpacesInParentheses: false
102 SpacesInSquareBrackets: false
103 Standard: Cpp11
104 TabWidth: 8
105 UseTab: Always
106 ...
This page took 0.030806 seconds and 4 git commands to generate.