[Ada] Add ghost code to facilitate proof with SPARK
[official-gcc.git] / contrib / clang-format
blobceb5c1d524f56a6a4bd2eb82f85d2f1601a8fe43
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 7.0.1 is required
18 # To utilize the tool to lines just touched by a patch, use
19 # clang-format-diff script that is usually also packaged with clang-format.
21 # Example of usage:
22 # git diff -U0 --no-color | clang-format-diff -p1
23 # (here the tool will generate a patch)
24 # git diff -U0 --no-color | clang-format-diff -p1 -i
25 # (modifications are applied)
27 ---
28 Language: Cpp
29 AccessModifierOffset: -2
30 AlwaysBreakAfterReturnType: TopLevel
31 BinPackArguments: true
32 BinPackParameters: true
33 BraceWrapping:
34   AfterClass: true
35   AfterControlStatement: true
36   AfterEnum: true
37   AfterFunction: true
38   AfterNamespace: false
39   AfterObjCDeclaration: true
40   AfterStruct: true
41   AfterUnion: true
42   BeforeCatch: true
43   BeforeElse: true
44   IndentBraces: true
45   SplitEmptyFunction: false
46 BreakBeforeBinaryOperators: All
47 BreakBeforeBraces: Custom
48 BreakBeforeTernaryOperators: true
49 ColumnLimit: 80
50 ConstructorInitializerIndentWidth: 2
51 ContinuationIndentWidth: 2
52 ForEachMacros: [
53 'FOR_ALL_BB_FN',
54 'FOR_ALL_EH_REGION',
55 'FOR_ALL_EH_REGION_AT',
56 'FOR_ALL_EH_REGION_FN',
57 'FOR_ALL_INHERITED_FIELDS',
58 'FOR_ALL_PREDICATES',
59 'FOR_BB_BETWEEN',
60 'FOR_BB_INSNS',
61 'FOR_BB_INSNS_REVERSE',
62 'FOR_BB_INSNS_REVERSE_SAFE',
63 'FOR_BB_INSNS_SAFE',
64 'FOR_BODY',
65 'FOR_COND',
66 'FOR_EACH_AGGR_INIT_EXPR_ARG',
67 'FOR_EACH_ALIAS',
68 'FOR_EACH_ALLOCNO',
69 'FOR_EACH_ALLOCNO_OBJECT',
70 'FOR_EACH_ARTIFICIAL_DEF',
71 'FOR_EACH_ARTIFICIAL_USE',
72 'FOR_EACH_BB_FN',
73 'FOR_EACH_BB_REVERSE_FN',
74 'FOR_EACH_BIT_IN_MINMAX_SET',
75 'FOR_EACH_CALL_EXPR_ARG',
76 'FOR_EACH_CLONE',
77 'FOR_EACH_CONST_CALL_EXPR_ARG',
78 'FOR_EACH_CONSTRUCTOR_ELT',
79 'FOR_EACH_CONSTRUCTOR_VALUE',
80 'FOR_EACH_COPY',
81 'FOR_EACH_DEF',
82 'FOR_EACH_DEFINED_FUNCTION',
83 'FOR_EACH_DEFINED_SYMBOL',
84 'FOR_EACH_DEFINED_VARIABLE',
85 'FOR_EACH_DEP',
86 'FOR_EACH_EDGE',
87 'FOR_EACH_EXPR',
88 'FOR_EACH_EXPR_1',
89 'FOR_EACH_FUNCTION',
90 'FOREACH_FUNCTION_ARGS',
91 'FOREACH_FUNCTION_ARGS_PTR',
92 'FOR_EACH_FUNCTION_WITH_GIMPLE_BODY',
93 'FOR_EACH_HASH_TABLE_ELEMENT',
94 'FOR_EACH_IMM_USE_FAST',
95 'FOR_EACH_IMM_USE_ON_STMT',
96 'FOR_EACH_IMM_USE_STMT',
97 'FOR_EACH_INSN',
98 'FOR_EACH_INSN_1',
99 'FOR_EACH_INSN_DEF',
100 'FOR_EACH_INSN_EQ_USE',
101 'FOR_EACH_INSN_INFO_DEF',
102 'FOR_EACH_INSN_INFO_EQ_USE',
103 'FOR_EACH_INSN_INFO_MW',
104 'FOR_EACH_INSN_INFO_USE',
105 'FOR_EACH_INSN_USE',
106 'FOR_EACH_LOCAL_DECL',
107 'FOR_EACH_LOOP',
108 'FOR_EACH_LOOP_FN',
109 'FOR_EACH_OBJECT',
110 'FOR_EACH_OBJECT_CONFLICT',
111 'FOR_EACH_PHI_ARG',
112 'FOR_EACH_PHI_OR_STMT_DEF',
113 'FOR_EACH_PHI_OR_STMT_USE',
114 'FOR_EACH_PREF',
115 'FOR_EACH_SCALAR',
116 'FOR_EACH_SSA_DEF_OPERAND',
117 'FOR_EACH_SSA_TREE_OPERAND',
118 'FOR_EACH_SSA_USE_OPERAND',
119 'FOR_EACH_STATIC_INITIALIZER',
120 'FOR_EACH_SUBRTX',
121 'FOR_EACH_SUBRTX_PTR',
122 'FOR_EACH_SUBRTX_VAR',
123 'FOR_EACH_SUCC',
124 'FOR_EACH_SUCC_1',
125 'FOR_EACH_SYMBOL',
126 'FOR_EACH_VARIABLE',
127 'FOR_EACH_VEC_ELT',
128 'FOR_EACH_VEC_ELT_FROM',
129 'FOR_EACH_VEC_ELT_REVERSE',
130 'FOR_EACH_VEC_SAFE_ELT',
131 'FOR_EACH_VEC_SAFE_ELT_REVERSE',
132 'FOR_EXPR',
133 'FOR_INIT_STMT',
134 'FOR_SCOPE'
136 IndentCaseLabels: false
137 NamespaceIndentation: None
138 PenaltyBreakBeforeFirstCallParameter: 100
139 PointerAlignment: Right
140 SortIncludes: false
141 SpaceAfterCStyleCast: true
142 SpaceBeforeParens: Always
143 SpacesBeforeTrailingComments: 1
144 UseTab: Always
145 AlignEscapedNewlines: Right
146 AlignTrailingComments: true
147 AllowShortFunctionsOnASingleLine: All
148 AlwaysBreakTemplateDeclarations: MultiLine
149 KeepEmptyLinesAtTheStartOfBlocks: false
150 Standard: Auto