Debian Codegraph @

test cases/format/5 transform/source.meson

raw
1 project(
2 'a'
3 ) # should be on one line
4
5
6 # List should be removed, and should be on one line
7 options_ini = 'options.ini'
8 f = files(
9 [
10 'expected.meson', 'source.meson', options_ini])
11
12 # This array should fit on one line
13 a1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]
14
15 # This array is too long and should be split
16 a2 = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
17
18 # space array
19 a3 = [ 1, 2, 3 ]
20
21 # multi line expression
22 is_foo = (true and false and true and false and true and false and true and false and true and false)
23
24 # no single comma function
25 fct = files(
26 'meson.build', # force multiline
27 )
28
29 # wide colon
30 d = {'a': 1, 'b': 2, 'c': 3}
31
32 # string conversion
33 '''This is not a multiline'''
34 f'This is not a fstring'
35 '''This isn't convertible'''
36
37 # group arg value
38 arguments = ['a', '--opt_a', 'opt_a_value', 'b', 'c', '--opt_d', '--opt_e', 'opt_e_value',
39 '--opt_f', '--opt_g', 'opt_g_value', 'other_value', 'again', '--x']
40
41 # issue #15032
42 if true
43 if true
44 if (true and
45 true and
46 false
47 )
48 message('Hello, world!')
49 endif
50 endif
51 endif
52
53 # issue #15019
54 if get_option('client')
55 sources += files(
56 'pypaste/client/__init__.py',
57 'pypaste/client/__main__.py',
58 'pypaste/client/plugins/__init__.py',
59 'pypaste/client/plugins/zen/__init__.py',
60 'pypaste/client/plugins/pgz/__init__.py'
61 )
62
63 dependencies += ['requests']
64 endif
65
66 # no final endline