summaryrefslogtreecommitdiff
path: root/mesonbuild/rewriter.py
AgeCommit message (Collapse)Author
2021-01-04use OptionKey for compiler_optionsDylan Baker
2021-01-04use OptionKey for backend_optionsDylan Baker
2021-01-04use OptionKey for coredata.user_optionsDylan Baker
2020-11-05rewrite: fix modified member spellingMarc-André Lureau
2020-11-05rewrite: fix function spellingMarc-André Lureau
2020-04-20Compiler options per langJohn Ericson
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`.
2020-03-02review: Initial fixupDaniel Mensinger
2020-03-02types: Annotate ast/interpreter.pyDaniel Mensinger
2020-03-02types: Annotate the AST visitorsDaniel Mensinger
2020-03-02types: Annotate mparser.pyDaniel Mensinger
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.
2020-02-28Rename 'subdir' -> 'filename' in location objectsJon Turney
2020-02-28Update rewriter for filename in node locationJon Turney
2020-01-08types: import typing as T (fixes #6333)Daniel Mensinger
2019-12-05lgtm: ignore all safe `__init__ method calls overridden method` warningsDaniel Mensinger
2019-12-05lgtm: Fix unused variableDaniel Mensinger
2019-11-06Fix typos found by codespellWolfgang Stöggl
- Typos were found by codespell v1.16.0
2019-06-05Per machine do 'build.' and '' option prefixesJohn Ericson
See the docs/ changes for details.
2019-06-05rewriter: Fix that default_options would not set the correct idDaniel Mensinger
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).
2019-04-25rewriter: optimize the list_to_dict functionDylan Baker
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.
2019-04-21rewriter: fix error messageDaniel Mensinger
2019-03-04rewriter: Renamed _src -> _sourcesDaniel Mensinger
2019-03-04rewriter: Make sure variable names are validDaniel Mensinger
2019-03-04rewriter: Require '/' for the project IDDaniel Mensinger
2019-03-04rewriter: Abort on error by defaultDaniel Mensinger
2019-03-04rewriter: Changed line sort keyDaniel Mensinger
2019-03-04rewriter: Quiet logging by defaultDaniel Mensinger
2019-03-04rewriter: type definition code fixDaniel Mensinger
2019-03-04rewriter: Handle duplicate targetDaniel Mensinger
2019-03-04rewriter: Dump JSON to stderr instead of stdoutDaniel Mensinger
2019-03-04rewriter: Remove command aliasDaniel Mensinger
2019-03-04rewriter: Renamed tgt_{add,rm} --> target_{add,rm}Daniel Mensinger
2019-03-04rewriter: Enforce an empty project ID stringDaniel Mensinger
2019-03-04rewriter: Removed python 3.7 feature required=FalseDaniel Mensinger
2019-03-04rewriter: Implemented a CLIDaniel Mensinger
2019-03-04rewriter: Removed debug printingDaniel Mensinger
2019-03-04rewriter: Type annotation cleanupDaniel Mensinger
2019-03-04rewriter: Make sure target sources are relativeDaniel Mensinger
2019-03-04rewriter: Sort source files (#5010)Daniel Mensinger
* rewriter: Sort source files * rewriter: Natural sorting * rewriter: Fix flake8 * rewriter: Fixed sorting * rewriter: Make sorting key more readable * rewriter: Even simpler key
2019-03-03mintro: Dependencies from sourceDaniel Mensinger
2019-03-03rewriter: Use mparser to detect the end of some nodesDaniel Mensinger
2019-03-02rewriter: Avoid duplicatesDaniel Mensinger
2019-02-27rewriter: Sort dict iterations to fix unit testsDaniel Mensinger
2019-02-26rewriter: Set and delete default optionsDaniel Mensinger
2019-02-26rewriter: Remove matching regex from listDaniel Mensinger
2019-02-26rewriter: Basic default_options supportDaniel Mensinger
2019-02-16Fixed flake8Daniel Mensinger
2019-02-16Fixed indentationDaniel Mensinger
2019-02-16rewriter: Added support for adding targetsDaniel Mensinger
2019-02-16rewriter: Added support for removing targetsDaniel Mensinger
2019-02-16Can now find the assignment node of a valueDaniel Mensinger