Add .clang-format
[lttng-tools.git] / .clang-format
CommitLineData
3aa937ab
JG
1AlignAfterOpenBracket: DontAlign
2AlignConsecutiveAssignments: false
3AlignConsecutiveDeclarations: false
4AlignEscapedNewlines: Left
5AlignOperands: true
6AlignTrailingComments: false
7AllowShortBlocksOnASingleLine: false
8AllowShortCaseLabelsOnASingleLine: false
9AllowShortFunctionsOnASingleLine: None
10AllowShortIfStatementsOnASingleLine: false
11AllowShortLoopsOnASingleLine: false
12AlwaysBreakAfterReturnType: None
13AlwaysBreakBeforeMultilineStrings: false
14BinPackArguments: true
15BinPackParameters: false
16BraceWrapping:
17 AfterControlStatement: false
18 AfterEnum: false
19 AfterFunction: true
20 AfterNamespace: true
21 AfterStruct: false
22 AfterUnion: false
23 AfterExternBlock: false
24 BeforeCatch: false
25 BeforeElse: false
26 IndentBraces: false
27 SplitEmptyFunction: true
28BreakBeforeBinaryOperators: None
29BreakBeforeBraces: Custom
30BreakBeforeTernaryOperators: false
31BreakStringLiterals: false
32ColumnLimit: 80
33ContinuationIndentWidth: 16
34DerivePointerAlignment: false
35DisableFormat: false
36ForEachMacros:
37 - 'cds_lfht_for_each_entry'
38 - 'cds_lfht_for_each_entry_safe'
39 - 'cds_lfht_for_each_duplicate'
40 - 'cds_list_for_each_entry'
41 - 'cds_list_for_each_entry_safe'
42
43IncludeBlocks: Preserve
44IncludeCategories:
45 - Regex: '.*'
46 Priority: 1
47IncludeIsMainRegex: '(Test)?$'
48IndentCaseLabels: false
49IndentPPDirectives: None
50IndentWidth: 8
51IndentWrappedFunctionNames: false
52KeepEmptyLinesAtTheStartOfBlocks: false
53MacroBlockBegin: ''
54MacroBlockEnd: ''
55MaxEmptyLinesToKeep: 1
56
57# Taken from git's rules
58PenaltyBreakAssignment: 10
59PenaltyBreakBeforeFirstCallParameter: 30
60PenaltyBreakComment: 10
61PenaltyBreakString: 10
62PenaltyExcessCharacter: 100
63PenaltyReturnTypeOnItsOwnLine: 60
64
65PointerAlignment: Right
66ReflowComments: true
67SortIncludes: true
68SpaceAfterCStyleCast: true
69SpaceBeforeAssignmentOperators: true
70SpaceBeforeParens: ControlStatements
71SpaceInEmptyParentheses: false
72SpacesBeforeTrailingComments: 1
73SpacesInContainerLiterals: false
74SpacesInCStyleCastParentheses: false
75SpacesInParentheses: false
76SpacesInSquareBrackets: false
77Standard: Cpp11
78TabWidth: 8
79UseTab: Always
80...
This page took 0.034539 seconds and 4 git commands to generate.