1 # Copyright (C) 2015 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 # clang-format 3.8+ (Mon Nov 16) is required
18 # To utilize the tool to lines just touched by a patch, use
19 # clang-format-diff.py script, which can be downloaded here:
20 # https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/clang-format-diff.py
24 AccessModifierOffset: -2
25 AlwaysBreakAfterDefinitionReturnType: All
26 BinPackArguments: true
27 BinPackParameters: true
30 AfterControlStatement: true
34 AfterObjCDeclaration: true
40 BreakBeforeBinaryOperators: All
41 BreakBeforeBraces: Custom
42 BreakBeforeTernaryOperators: true
44 ConstructorInitializerIndentWidth: 2
45 ContinuationIndentWidth: 2
49 'FOR_ALL_EH_REGION_AT',
50 'FOR_ALL_EH_REGION_FN',
51 'FOR_ALL_INHERITED_FIELDS',
55 'FOR_BB_INSNS_REVERSE',
56 'FOR_BB_INSNS_REVERSE_SAFE',
60 'FOR_EACH_AGGR_INIT_EXPR_ARG',
63 'FOR_EACH_ALLOCNO_OBJECT',
64 'FOR_EACH_ARTIFICIAL_DEF',
65 'FOR_EACH_ARTIFICIAL_USE',
67 'FOR_EACH_BB_REVERSE_FN',
68 'FOR_EACH_BIT_IN_MINMAX_SET',
69 'FOR_EACH_CALL_EXPR_ARG',
71 'FOR_EACH_CONST_CALL_EXPR_ARG',
72 'FOR_EACH_CONSTRUCTOR_ELT',
73 'FOR_EACH_CONSTRUCTOR_VALUE',
76 'FOR_EACH_DEFINED_FUNCTION',
77 'FOR_EACH_DEFINED_SYMBOL',
78 'FOR_EACH_DEFINED_VARIABLE',
84 'FOREACH_FUNCTION_ARGS',
85 'FOREACH_FUNCTION_ARGS_PTR',
86 'FOR_EACH_FUNCTION_WITH_GIMPLE_BODY',
87 'FOR_EACH_HASH_TABLE_ELEMENT',
88 'FOR_EACH_IMM_USE_FAST',
89 'FOR_EACH_IMM_USE_ON_STMT',
90 'FOR_EACH_IMM_USE_STMT',
94 'FOR_EACH_INSN_EQ_USE',
95 'FOR_EACH_INSN_INFO_DEF',
96 'FOR_EACH_INSN_INFO_EQ_USE',
97 'FOR_EACH_INSN_INFO_MW',
98 'FOR_EACH_INSN_INFO_USE',
100 'FOR_EACH_LOCAL_DECL',
104 'FOR_EACH_OBJECT_CONFLICT',
106 'FOR_EACH_PHI_OR_STMT_DEF',
107 'FOR_EACH_PHI_OR_STMT_USE',
110 'FOR_EACH_SSA_DEF_OPERAND',
111 'FOR_EACH_SSA_TREE_OPERAND',
112 'FOR_EACH_SSA_USE_OPERAND',
113 'FOR_EACH_STATIC_INITIALIZER',
115 'FOR_EACH_SUBRTX_PTR',
116 'FOR_EACH_SUBRTX_VAR',
122 'FOR_EACH_VEC_ELT_FROM',
123 'FOR_EACH_VEC_ELT_REVERSE',
124 'FOR_EACH_VEC_SAFE_ELT',
125 'FOR_EACH_VEC_SAFE_ELT_REVERSE',
130 IndentCaseLabels: false
131 NamespaceIndentation: None
132 PenaltyBreakBeforeFirstCallParameter: 100
133 PointerAlignment: Right
135 SpaceAfterCStyleCast: true
136 SpaceBeforeParens: Always
137 SpacesBeforeTrailingComments: 1