Dylan Baker
3d80a88bd3
modules: Add an unstable-rust module
...
Like other language specific modules this module is module for holding
rust specific helpers. This commit adds a test() function, which
simplifies using rust's internal unittest mechanism.
Rust tests are generally placed in the same code files as they are
testing, in contrast to languages like C/C++ and python which generally
place the tests in separate translation units. For meson this is
somewhat problematic from a repetition point of view, as the only
changes are generally adding --test, and possibly some dependencies.
The rustmod.test() method provides a mechanism to remove the repatition:
it takes a rust target, copies it, and then addes the `--test` option,
then creates a Test() target with the `rust` protocol. You can pass
additional dependencies via the `dependencies` keyword. This all makes
for a nice, DRY, test definition.
4 years ago
Dylan Baker
f6672c7a19
use real pathlib module
...
We added the _pathlib module to work around defeciencies in python 3.5's
implementation, since we now rely on 3.6 lets drop this
4 years ago
Dylan Baker
93ecfa646b
Add type annotations to optinterpreter
4 years ago
Daniel Mensinger
1dfaccfd91
pathlib: Fix resolve() by overriding it in Python 3.5
4 years ago
Dylan Baker
4cdc32114b
run_mypy: mark the whole compilers package as type safe
4 years ago
Dylan Baker
6a9761a2c0
compilers/d: add type annotations
4 years ago
Dylan Baker
e039727e63
compilers/fortran: add type annotations
4 years ago
Dylan Baker
3fc37fc13e
compilers/java: Add type annotations
4 years ago
Dylan Baker
4430269d4e
compilers/rust: add type annotations
4 years ago
Dylan Baker
e437bdd0a9
compilers/swift: Add type annotations
4 years ago
Dylan Baker
efceec9615
Compilers/vala: Add type annotations
4 years ago
Dylan Baker
d3a059b55f
compilers/cuda: make type safe
4 years ago
Dylan Baker
fe97977b00
compilers/cpp: Add type annotations
4 years ago
Dylan Baker
96a1ae6dfe
compilers: fully type annotate the C compilers
4 years ago
Daniel Mensinger
2f3ef6f1af
typing: fully annotate cmake.interpreter
4 years ago
Daniel Mensinger
9f695435e7
typing: add convinient option to clear the terminal to run_mypy.py
4 years ago
Daniel Mensinger
19b3f65e70
typing: fix indentation in run_mypy.py
4 years ago
Dylan Baker
da4c1945fc
compilers/objcpp: add type annotations
4 years ago
Dylan Baker
05df8320db
compilers/objc: Add type annotations
4 years ago
Dylan Baker
02658fdda4
run_mypy: compilers/c_function_attributes is already type safe
4 years ago
Dylan Baker
0d644ac87b
run_mypy: all of compilers/mixins is now type safe
4 years ago
Dylan Baker
fa1398f86c
compilers/mixins: make xc16 type safe
4 years ago
Dylan Baker
4911e8eef4
compilers/mixins: make visual studio type safe
4 years ago
Dylan Baker
b6c8b8a5be
compilers/mixins/pgi: Make type safe
4 years ago
Dylan Baker
6dc774f1b6
compilers/mixins/islinker: Make type safe
4 years ago
Dylan Baker
8ee1e6b768
compilers/mixins/intel: make type safe
4 years ago
Dylan Baker
1e93d2875e
compilers/mixins/emscripten: make type safe
4 years ago
Dylan Baker
04a98baafb
compilers/mixins/elbrus: make type safe
4 years ago
Dylan Baker
bc532a8543
compilers/mixins: make compcert type safe
4 years ago
Dylan Baker
48a181866f
compilers/mixins/clang: Make type safe
4 years ago
Dylan Baker
4b52184dc6
compilers/mixings/gnu: make type safe
4 years ago
Dylan Baker
bb3fe3c451
compilers/mixins/clike: fix mypy issues
4 years ago
Dylan Baker
4cfddd1fe6
compilers/mixins/ccrx: make mypy safe
4 years ago
Dylan Baker
c93395bfc7
compilers/mixins/c2000: Make mypy safe
4 years ago
Dylan Baker
b7db3660a0
compilers/mixins/arm: make type safe
4 years ago
Dylan Baker
79d1ecd5bc
compilers/compilers: Fully type annotate
4 years ago
Dylan Baker
3526b36a77
linkers: fully type annotate and fix mypy issues
...
This makes GnuDynamicLinker not suitable for instantiation, so the tests
need to be changed to use the BFD class.
4 years ago
Daniel Mensinger
23818fc5a3
typing: more fixes
4 years ago
Daniel Mensinger
5deb33b03c
typing: update run_mypy and mypy.ini
4 years ago
Daniel Mensinger
ca1878ffb5
typing: fix envconfig typing
4 years ago
Daniel Mensinger
0490372449
typing: fully annotate mintro and mtest
4 years ago
Daniel Mensinger
c637b913c9
typing: fully annotate mcompile, minit, and msetup
4 years ago
Daniel Mensinger
6b1b995b32
typing: fully annotate fs module
4 years ago
Daniel Mensinger
3dbfe8f75a
typing: fully annotate arglist
4 years ago
Daniel Mensinger
1217cf9a3b
typing: fully annotate boost and hdf5 deps
4 years ago
Daniel Mensinger
a4f4379c44
typing: fully annotate scripts
4 years ago
Daniel Mensinger
0d57e307b2
typing: fully annotate tools
4 years ago
Daniel Mensinger
449dd8e72a
typing: fully annotate wrap
4 years ago
Daniel Mensinger
fb9738b8c7
typing: fully annotate mparser.py
4 years ago
Daniel Mensinger
bb09ca9ad5
typing: fully annotate mesonlib.py
4 years ago