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