Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-09-27 | typing: fully annotate cmake.common | Daniel Mensinger | 2 | -42/+50 | |
2020-09-27 | typing: fully annotate cmake.client | Daniel Mensinger | 1 | -35/+43 | |
2020-09-27 | typing: add convinient option to clear the terminal to run_mypy.py | Daniel Mensinger | 1 | -0/+5 | |
2020-09-27 | typing: fix indentation in run_mypy.py | Daniel Mensinger | 1 | -48/+48 | |
2020-09-25 | tests/hdf5: work around some problems | Dylan Baker | 1 | -5/+20 | |
There are two cases that won't work (these are taken from fortran/9 cpp), using gfortran with a non-gcc compiler on windows, or using gfortran with apple clang. The latter is due to default search paths, which we can fix, but is out of scope for this MR. | |||||
2020-09-25 | dependencies/hdf5: Use the correct compilers for the machine | Dylan Baker | 3 | -6/+23 | |
Instead of the default ones, this is especially important when cross compiling or when using compilers that aren't compatible with the default ones. squash! dependencies/hdf5: Use the actual system compilers | |||||
2020-09-25 | dependencies/hdf5: Convert to a dependency_factory | Dylan Baker | 9 | -113/+168 | |
Instead of a mega dependency that does everything, use a dependency factory for config-tool and pkg-config | |||||
2020-09-24 | environment: Pass defines to clang based ObjC[++] compilers | Dylan Baker | 1 | -1/+5 | |
mypy noticed that we were passing [] (instead of a dict or None) to the ClangCompiler class in objc, which made me noticed that for C and C++ we set the defines, but not for ObjC and ObjC++ | |||||
2020-09-24 | compilers/objcpp: add type annotations | Dylan Baker | 2 | -14/+31 | |
2020-09-24 | compilers/objc: Add type annotations | Dylan Baker | 2 | -14/+28 | |
2020-09-24 | compilers: Tell mypy that the compiler mixins are just that | Dylan Baker | 16 | -178/+122 | |
We do this by making the mixins inherit the Compiler class only when mypy is examining the code (using some clever inheritance shenanigans). This caught a bunch of issues, and also lets us delete a ton of code. | |||||
2020-09-24 | compilers: make is_cross part of the base Compiler class | Dylan Baker | 14 | -38/+36 | |
Every class needs to set this, so it should be part of the base. For classes that require is_cross, the positional argument remains in their signature. For those that don't, they just allow the base class to set their value to it's default of False. | |||||
2020-09-24 | compilers: make sanity_check_impl a protected method | Dylan Baker | 3 | -4/+4 | |
It's an implementation detail after all | |||||
2020-09-24 | compilers: put name_string method in base compiler | Dylan Baker | 9 | -24/+4 | |
Every language had the exact same implementation | |||||
2020-09-24 | run_mypy: compilers/c_function_attributes is already type safe | Dylan Baker | 1 | -0/+1 | |
2020-09-24 | run_mypy: all of compilers/mixins is now type safe | Dylan Baker | 1 | -14/+1 | |
2020-09-24 | compilers/mixins: make xc16 type safe | Dylan Baker | 2 | -2/+8 | |
2020-09-24 | compilers/mixins: make visual studio type safe | Dylan Baker | 2 | -2/+22 | |
2020-09-24 | compilers/mixins/pgi: Make type safe | Dylan Baker | 2 | -2/+12 | |
2020-09-24 | compilers/mixins/islinker: Make type safe | Dylan Baker | 2 | -0/+5 | |
2020-09-24 | compilers/mixins/intel: make type safe | Dylan Baker | 2 | -12/+23 | |
2020-09-24 | compilers/mixins/intel: Use the has_func_attribute_extra_args function | Dylan Baker | 2 | -1/+6 | |
Instead of putting that extra argument in the base compiles() class | |||||
2020-09-24 | compilers/mixins/emscripten: make type safe | Dylan Baker | 2 | -4/+12 | |
2020-09-24 | compilers/mixins/elbrus: make type safe | Dylan Baker | 2 | -1/+6 | |
2020-09-24 | compilers/mixins: make compcert type safe | Dylan Baker | 2 | -2/+7 | |
2020-09-24 | compilers/mixins/clang: Make type safe | Dylan Baker | 3 | -5/+25 | |
2020-09-24 | compilers/mixings/gnu: make type safe | Dylan Baker | 2 | -11/+35 | |
2020-09-24 | compilers/mixins/clike: fix mypy issues | Dylan Baker | 7 | -152/+303 | |
2020-09-24 | compilers/mixins/ccrx: make mypy safe | Dylan Baker | 2 | -1/+7 | |
2020-09-24 | compilers/mixins/c2000: Make mypy safe | Dylan Baker | 2 | -1/+7 | |
2020-09-24 | compilers/mixins/arm: make type safe | Dylan Baker | 2 | -26/+25 | |
2020-09-24 | compilers/compilers: Fully type annotate | Dylan Baker | 7 | -168/+266 | |
2020-09-24 | ast/introspection: Fix typing violation due to untyped functions | Dylan Baker | 1 | -7/+8 | |
When we add type annotations to this in compilers this will break, unless we've already filtered out the non-string arguments. | |||||
2020-09-24 | compilers: Use a distinct type for compile/link results | Dylan Baker | 5 | -29/+42 | |
Currently we do some crazy hackery where we add extra properties to a Popen object and return that. That's crazy. Especially since some of our hackery is to delete attributes off of the Popen we don't want. Instead, let's just have a discrete type that has exactly the properties we want. | |||||
2020-09-23 | zsh: Add completions for meson compile | Dylan Baker | 1 | -0/+16 | |
2020-09-23 | zsh: add completions for subprojects | Dylan Baker | 1 | -3/+77 | |
2020-09-23 | zsh: add wrap completions | Dylan Baker | 1 | -1/+54 | |
This is still missing completions for promote, but I can't figure out how to find the wraps in subprojects that are not in the parent project when those projects haven't been fetched yet. | |||||
2020-09-23 | zsh: add missing arguments to meson test completions | Dylan Baker | 1 | -5/+6 | |
This also reorders the options internally to match the output of meson test --help, which makes it easier to diff | |||||
2020-09-23 | zsh: Add completions for meson init | Dylan Baker | 1 | -2/+22 | |
2020-09-23 | Deprecate meson.build_root() and meson.source_root() | Xavier Claessens | 3 | -6/+13 | |
Those function are common source of issue when used in a subproject because they point to the parent project root which is rarely what is expected and is a violation of subproject isolation. | |||||
2020-09-23 | zsh: Add completions for meson install | Dylan Baker | 1 | -2/+17 | |
2020-09-22 | pylint: turn on a few more errors | Dylan Baker | 1 | -0/+3 | |
2020-09-22 | pylint: turn on bad-indentation error | Dylan Baker | 6 | -30/+31 | |
and fix all of the bad indentation | |||||
2020-09-22 | pylint: turn on warnings for abstract classes | Dylan Baker | 1 | -0/+1 | |
We're using these now, so having some error checking to make sure we don't have paths were we're trying to instantiate an abstract class would be good. | |||||
2020-09-22 | pylint: Turn on warnings for incorrect number of args | Dylan Baker | 3 | -6/+11 | |
This catches some very real errors. The one in scalapack is pretty silly actually, it's failing to figure out that the exploded list is at least two arguments. However, the code is actually clearer by not using a list and exploding it, so I've done that and pylint is happy too. | |||||
2020-09-22 | zsh: add meson dist completions | Dylan Baker | 1 | -2/+18 | |
2020-09-22 | mdist: actually constrain the choices of the --formats option | Dylan Baker | 1 | -1/+1 | |
Since we already have that list available. | |||||
2020-09-22 | zsh: Add ability to complete depedency paths | Dylan Baker | 1 | -4/+4 | |
using , separated syntax | |||||
2020-09-22 | zsh: add missing options for meson introspect | Dylan Baker | 1 | -5/+7 | |
2020-09-22 | zsh: share common options between meson configure and meson setup | Dylan Baker | 1 | -36/+38 | |