Debian Codegraph @

tests/Kstr

raw
1 if UNDEFINED
2 endif
3
4 config NO_TYPE
5
6 config BASIC_NO_PROMPT
7 bool
8 help
9 blah blah
10
11 blah blah blah
12
13 blah
14
15 config BASIC_PROMPT
16 bool "basic"
17
18 config ADVANCED
19 tristate "prompt" if DEP
20 default DEFAULT_1
21 default DEFAULT_2 if DEP
22 select SELECTED_1
23 select SELECTED_2 if DEP
24 imply IMPLIED_1
25 imply IMPLIED_2 if DEP
26 help
27 first help text
28
29 config ADVANCED
30 prompt "prompt 2"
31
32 menuconfig ADVANCED
33 prompt "prompt 3"
34
35 if DEP3
36
37 menu "foo"
38 depends on DEP4
39 visible if VIS
40
41 config ADVANCED
42 help
43 second help text
44 depends on A || !B || (C && D) || !(E && F) || G = H || \
45 (I && !J && (K || L) && !(M || N) && O = P)
46
47 config ADVANCED
48 # Used to verify that the direct dependencies appear to the right of VIS
49 prompt "prompt 4"
50
51 endmenu
52
53 endif
54
55 config ONLY_DIRECT_DEPS
56 int
57 depends on DEP1
58 depends on DEP2
59
60 config STRING
61 def_string "foo"
62 default "bar" if DEP
63 default STRING2
64 default STRING3 if DEP
65
66 config INT
67 def_int 7 if DEP
68 range 1 2
69 range FOO BAR
70 range BAZ QAZ if DEP
71
72 config HEX
73 def_hex 0x123
74 range 0x100 0x200
75 range FOO BAR
76 range BAZ QAZ if DEP
77
78 config MODULES
79 bool "MODULES"
80 option modules
81
82 config OPTIONS
83 option allnoconfig_y
84 option defconfig_list
85 option env="ENV"
86
87 if LOC_1
88 config CORRECT_PROP_LOCS_BOOL
89 prompt "prompt 1"
90 default DEFAULT_1
91 default DEFAULT_2
92 select SELECT_1
93 select SELECT_2
94 imply IMPLY_1
95 imply IMPLY_2
96 help
97 help 1
98 endif
99
100 if LOC_2
101 menuconfig CORRECT_PROP_LOCS_BOOL
102 bool "prompt 2"
103 default DEFAULT_3
104 default DEFAULT_4
105 select SELECT_3
106 select SELECT_4
107 imply IMPLY_3
108 imply IMPLY_4
109 help
110 help 2
111 endif
112
113 if LOC_3
114 config CORRECT_PROP_LOCS_BOOL
115 prompt "prompt 3"
116 default DEFAULT_5
117 default DEFAULT_6
118 select SELECT_5
119 select SELECT_6
120 imply IMPLY_5
121 imply IMPLY_6
122 help
123 help 2
124 endif
125
126 if LOC_1
127 config CORRECT_PROP_LOCS_INT
128 int
129 range 1 2
130 range 3 4
131 endif
132
133 if LOC_2
134 config CORRECT_PROP_LOCS_INT
135 range 5 6
136 range 7 8
137 endif
138
139 choice CHOICE
140 tristate "foo"
141 default CHOICE_1
142 default CHOICE_2 if dep
143
144 config CHOICE_1
145 tristate "choice 1"
146
147 config CHOICE_2
148 tristate "choice 2"
149
150 endchoice
151
152 choice
153 tristate "no name"
154 optional
155 endchoice
156
157 if LOC_1
158 choice CORRECT_PROP_LOCS_CHOICE
159 bool
160 default CHOICE_3
161
162 config CHOICE_3
163 bool "choice 3"
164
165 config CHOICE_4
166 bool "choice 3"
167
168 config CHOICE_5
169 bool "choice 3"
170
171 endchoice
172 endif
173
174 if LOC_2
175 choice CORRECT_PROP_LOCS_CHOICE
176 default CHOICE_4
177 endchoice
178 endif
179
180 if LOC_3
181 choice CORRECT_PROP_LOCS_CHOICE
182 default CHOICE_5
183 endchoice
184 endif
185
186 config SIMPLE_MENU_HOOK
187 menu "simple menu"
188 endmenu
189
190 config ADVANCED_MENU_HOOK
191 menu "advanced menu"
192 depends on A
193 visible if B
194 visible if C || D
195 endmenu
196
197 config SIMPLE_COMMENT_HOOK
198 comment "simple comment"
199
200 config ADVANCED_COMMENT_HOOK
201 comment "advanced comment"
202 depends on A
203 depends on B
204
205 # Corner cases when removing direct dependencies
206
207 config DEP_REM_CORNER_CASES
208 bool
209 default A
210 depends on n
211
212 config DEP_REM_CORNER_CASES
213 default B if n
214
215 config DEP_REM_CORNER_CASES
216 default C
217 depends on m
218
219 config DEP_REM_CORNER_CASES
220 default D if A && y
221 depends on y
222
223 config DEP_REM_CORNER_CASES
224 default E if !E1
225 default F if F1 = F2
226 default G if G1 || H1
227 depends on !H
228
229 config DEP_REM_CORNER_CASES
230 default H
231 depends on "foo" = "bar"
232
233 menu "menu"
234 visible if FOO || BAR
235
236 config DEP_REM_CORNER_CASES
237 prompt "prompt"
238 depends on BAZ && QAZ
239
240 endmenu
241
242 # Only prompt, no type
243 config PROMPT_ONLY
244 prompt "prompt only"
245
246 # {Symbol,Choice}.orig_*
247
248 if BASE_DEP
249
250 config BOOL_SYM_ORIG
251 bool
252 default D1 if DEP
253 default D2
254 select S1
255 select S2 if DEP
256 imply I1
257 imply I1
258
259 config BOOL_SYM_ORIG
260 default D3
261 select S3
262 imply I3 if DEP
263
264 config INT_SYM_ORIG
265 int
266 range 1 2 if DEP
267 range 3 4
268
269 config INT_SYM_ORIG
270 range 5 6 if DEP
271
272 choice CHOICE_ORIG
273 bool "choice orig"
274 default A
275 default B if DEP
276
277 config A
278 bool
279
280 config B
281 bool
282
283 endchoice
284
285 choice CHOICE_ORIG
286 default C if DEP
287
288 config C
289 bool
290
291 endchoice
292
293 endif