Marc-André Lureau
be2c1a4300
rewrite: fix modified member spelling
4 years ago
Marc-André Lureau
7ba7ea0897
rewrite: fix function spelling
4 years ago
Dylan Baker
29ef4478df
compilers/d: Add b_ndebug support
...
D lang compilers have an option -release (or similar) which turns off
asserts, contracts, and other runtime type checking. This patch wires
that up to the b_ndebug flag.
Fixes #7082
5 years ago
John Ericson
278c294aa4
Compiler options per lang
...
A current rather untyped storage of options is one of the things that
contributes to the options code being so complex. This takes a small
step in synching down by storing the compiler options in dicts per
language.
Future work might be replacing the langauge strings with an enum, and
defaultdict with a custom struct, just like `PerMachine` and
`MachineChoice`.
5 years ago
Daniel Mensinger
ab988198c7
review: Initial fixup
5 years ago
Daniel Mensinger
c48b0dea27
types: Annotate ast/interpreter.py
5 years ago
Daniel Mensinger
a75255bc4c
types: Annotate the AST visitors
5 years ago
Daniel Mensinger
c14aea2812
types: Annotate mparser.py
...
This also fixes that the keys in ArgumentNode.kwargs are
all of the type BaseNode now. Before this commit, it was
possible that both strings and Nodes where used as keys.
5 years ago
Jon Turney
c8f8d58273
Rename 'subdir' -> 'filename' in location objects
5 years ago
Jon Turney
d1bd4ccf6e
Update rewriter for filename in node location
5 years ago
Daniel Mensinger
09b53c534f
types: import typing as T ( fixes #6333 )
5 years ago
Daniel Mensinger
b5cec1c632
lgtm: ignore all safe `__init__ method calls overridden method` warnings
5 years ago
Daniel Mensinger
fa4de71faf
lgtm: Fix unused variable
5 years ago
Wolfgang Stöggl
f037e7ef45
Fix typos found by codespell
...
- Typos were found by codespell v1.16.0
5 years ago
John Ericson
af2d7af998
Per machine do 'build.' and '' option prefixes
...
See the docs/ changes for details.
6 years ago
Daniel Mensinger
94c6da33a7
rewriter: Fix that default_options would not set the correct id
...
Currently default_options uses "" for the kwarks id, however this
is incorect and it must be "/". Additionally, this error won't be
ignored in the future with "--skip" (this is why the tests were
passing and this wasn't detected earlier).
6 years ago
Dylan Baker
8e1670cc60
rewriter: optimize the list_to_dict function
...
This uses an iterator instead of walking a list, which is roughly twice
as fast. This also does away with the pre-check on whether the list is
valid for converting to a dict, and instead handles the case of an
uneven number by catching another exception. This is preferable since
it's a fatal error anyway, so avoiding it in the non-fatal case is
preferable.
6 years ago
Daniel Mensinger
bffd28d4b2
rewriter: fix error message
6 years ago
Daniel Mensinger
5f6b94ccb9
rewriter: Renamed _src -> _sources
6 years ago
Daniel Mensinger
617445ea72
rewriter: Make sure variable names are valid
6 years ago
Daniel Mensinger
594bf678c7
rewriter: Require '/' for the project ID
6 years ago
Daniel Mensinger
609a21ff9f
rewriter: Abort on error by default
6 years ago
Daniel Mensinger
c957a2aa94
rewriter: Changed line sort key
6 years ago
Daniel Mensinger
5d2f14fce7
rewriter: Quiet logging by default
6 years ago
Daniel Mensinger
06695fec60
rewriter: type definition code fix
6 years ago
Daniel Mensinger
e724fd5438
rewriter: Handle duplicate target
6 years ago
Daniel Mensinger
b55dbf0fae
rewriter: Dump JSON to stderr instead of stdout
6 years ago
Daniel Mensinger
90b557e38a
rewriter: Remove command alias
6 years ago
Daniel Mensinger
1290330894
rewriter: Renamed tgt_{add,rm} --> target_{add,rm}
6 years ago
Daniel Mensinger
eabc35340d
rewriter: Enforce an empty project ID string
6 years ago
Daniel Mensinger
8fad06e8c8
rewriter: Removed python 3.7 feature required=False
6 years ago
Daniel Mensinger
740f6b8f06
rewriter: Implemented a CLI
6 years ago
Daniel Mensinger
e72f535fc8
rewriter: Removed debug printing
6 years ago
Daniel Mensinger
0fd4dce906
rewriter: Type annotation cleanup
6 years ago
Daniel Mensinger
2582f311b0
rewriter: Make sure target sources are relative
6 years ago
Daniel Mensinger
760d1bff9c
rewriter: Sort source files ( #5010 )
...
* rewriter: Sort source files
* rewriter: Natural sorting
* rewriter: Fix flake8
* rewriter: Fixed sorting
* rewriter: Make sorting key more readable
* rewriter: Even simpler key
6 years ago
Daniel Mensinger
f9b41d5ecb
mintro: Dependencies from source
6 years ago
Daniel Mensinger
5a22bb7901
rewriter: Use mparser to detect the end of some nodes
6 years ago
Daniel Mensinger
7199cd2095
rewriter: Avoid duplicates
6 years ago
Daniel Mensinger
94fe01deec
rewriter: Sort dict iterations to fix unit tests
6 years ago
Daniel Mensinger
9e247cb52e
rewriter: Set and delete default options
6 years ago
Daniel Mensinger
74bb79e26e
rewriter: Remove matching regex from list
6 years ago
Daniel Mensinger
e37d32aa9d
rewriter: Basic default_options support
6 years ago
Daniel Mensinger
4b7b5a7185
Fixed flake8
6 years ago
Daniel Mensinger
631dbc4b24
Fixed indentation
6 years ago
Daniel Mensinger
5184465280
rewriter: Added support for adding targets
6 years ago
Daniel Mensinger
056c533ede
rewriter: Added support for removing targets
6 years ago
Daniel Mensinger
24a2cf02e2
Can now find the assignment node of a value
6 years ago
Daniel Mensinger
0ce02b57d7
Renamed type classes
6 years ago
Daniel Mensinger
8c364952af
Added dependecy kwargs support
6 years ago