Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mintro: Fix resolving nodes in kwargs (fixes #5884) | Daniel Mensinger | 2019-09-04 | 1 | -42/+66 |
| | |||||
* | Add is_disabler function | James Hilliard | 2019-08-12 | 1 | -0/+1 |
| | | | | | | This is useful if one needs to check if a variable is a disabler. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> | ||||
* | mintro: Fix crash related to the sources kwarg (fixes #5741) | Daniel Mensinger | 2019-07-31 | 2 | -3/+7 |
| | |||||
* | Merge pull request #5606 from xclaesse/alias_target | Jussi Pakkanen | 2019-07-11 | 1 | -0/+1 |
|\ | | | | | Add alias_target() function | ||||
| * | Add alias_target() function | Xavier Claessens | 2019-07-10 | 1 | -0/+1 |
| | | |||||
* | | ast: printer fix index node printing | Daniel Mensinger | 2019-06-28 | 2 | -1/+3 |
|/ | |||||
* | Purge `is_cross` and friends without changing user interfaces | John Ericson | 2019-06-09 | 1 | -7/+8 |
| | | | | | | | | | | | | In most cases instead pass `for_machine`, the name of the relevant machines (what compilers target, what targets run on, etc). This allows us to use the cross code path in the native case, deduplicating the code. As one can see, environment got bigger as more information is kept structured there, while ninjabackend got a smaller. Overall a few amount of lines were added, but the hope is what's added is a lot simpler than what's removed. | ||||
* | ast: fix #5376 | Daniel Mensinger | 2019-05-13 | 2 | -3/+9 |
| | |||||
* | Fix flake8-bugbear warnings | Daniel Mensinger | 2019-04-29 | 1 | -2/+0 |
| | |||||
* | Fix builtin variable names | Daniel Mensinger | 2019-04-29 | 1 | -3/+3 |
| | |||||
* | Fix blind exceptions | Daniel Mensinger | 2019-04-29 | 1 | -1/+1 |
| | |||||
* | ast/printer: remove useless ternary | Dylan Baker | 2019-04-25 | 1 | -1/+1 |
| | | | | | The ternary returns True or False from an expression that returns True or False: i.e. True if bool(value) else False. | ||||
* | ast: Address code review | Daniel Mensinger | 2019-04-23 | 1 | -3/+7 |
| | |||||
* | make flake8 happy | Daniel Mensinger | 2019-04-23 | 1 | -1/+0 |
| | |||||
* | ast: Make sure to avoid infinite recursions | Daniel Mensinger | 2019-04-23 | 1 | -9/+9 |
| | |||||
* | ast: support elementary object methods | Daniel Mensinger | 2019-04-23 | 1 | -6/+40 |
| | |||||
* | ast: resolve simple arithmetic nodes | Daniel Mensinger | 2019-04-23 | 1 | -4/+29 |
| | |||||
* | ast: resolve ID nodes in flatten_args | Daniel Mensinger | 2019-04-23 | 2 | -23/+27 |
| | |||||
* | Don't use mutable types as default arguments | Dylan Baker | 2019-04-23 | 2 | -4/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | This isn't safe given the way python implements default arguments. Basically python store a reference to the instance it was passed, and then if that argument is not provided it uses the default. That means that two calls to the same function get the same instance, if one of them mutates that instance every subsequent call that gets the default will receive the mutated instance. The idiom to this in python is to use None and replace the None, def in(value: str, container: Optional[List[str]]) -> boolean: return src in (container or []) if there is no chance of mutation it's less code to use or and take advantage of None being falsy. If you may want to mutate the value passed in you need a ternary (this example is stupid): def add(value: str, container: Optional[List[str]]) -> None: container = container if container is not None else [] container.append(value) I've used or everywhere I'm sure that the value will not be mutated by the function and erred toward caution by using ternaries for the rest. | ||||
* | mintro: Fix set_variable plus assign bug (closes #5256) | Daniel Mensinger | 2019-04-13 | 1 | -0/+1 |
| | |||||
* | mintro: fix some interpreter crashes | Daniel Mensinger | 2019-04-02 | 2 | -1/+27 |
| | |||||
* | mintro: Fix crash when required is a function (closes #5177) | Daniel Mensinger | 2019-04-02 | 1 | -0/+2 |
| | |||||
* | rewriter: Handle duplicate target | Daniel Mensinger | 2019-03-04 | 2 | -5/+7 |
| | |||||
* | intro: Fixed code after rebase | Daniel Mensinger | 2019-03-03 | 1 | -1/+1 |
| | |||||
* | mintro: Dependencies from source | Daniel Mensinger | 2019-03-03 | 3 | -1/+40 |
| | |||||
* | Target introspection from source | Daniel Mensinger | 2019-03-03 | 1 | -2/+4 |
| | |||||
* | rewriter: Minor code cleanup | Daniel Mensinger | 2019-03-03 | 1 | -12/+13 |
| | |||||
* | rewriter: Handle Arithmetic node | Daniel Mensinger | 2019-03-03 | 1 | -2/+4 |
| | |||||
* | mintro: Add subproject_dir to --projectinfo | Daniel Schulte | 2019-03-01 | 1 | -2/+2 |
| | |||||
* | mconf: Fixed crash for variables in targets (closes #4960) | Daniel Mensinger | 2019-02-26 | 1 | -1/+2 |
| | |||||
* | Can now find the assignment node of a value | Daniel Mensinger | 2019-02-16 | 2 | -6/+21 |
| | |||||
* | Merge pull request #4858 from mensinda/rwKWARGS | Jussi Pakkanen | 2019-02-16 | 2 | -6/+20 |
|\ | | | | | rewriter: Add support for kwargs modification | ||||
| * | Added dependecy kwargs support | Daniel Mensinger | 2019-01-31 | 1 | -0/+12 |
| | | |||||
| * | Added test case | Daniel Mensinger | 2019-01-31 | 1 | -4/+2 |
| | | |||||
| * | Some fixes and assignment based target find | Daniel Mensinger | 2019-01-31 | 2 | -2/+6 |
| | | |||||
* | | allow setting directory locations in a native file | Dylan Baker | 2019-02-11 | 1 | -1/+1 |
| | | | | | | | | | | | | This allows the person running configure (either a developer, user, or distro maintainer) to keep a configuration of where various kinds of files should end up. | ||||
* | | Ensure that func dicts provide the same set of functions | Daniel Mensinger | 2019-02-01 | 1 | -0/+10 |
|/ | |||||
* | Fixed style issues | Daniel Mensinger | 2019-01-24 | 1 | -14/+14 |
| | |||||
* | Fixed flake8 issues | Daniel Mensinger | 2019-01-22 | 2 | -5/+4 |
| | |||||
* | Can now rewrite files | Daniel Mensinger | 2019-01-22 | 1 | -2/+14 |
| | |||||
* | First rewriter test case | Daniel Mensinger | 2019-01-22 | 3 | -9/+37 |
| | |||||
* | Added support for assignments in the AST interpretor | Daniel Mensinger | 2019-01-22 | 1 | -2/+9 |
| | |||||
* | Added target AST Interpreter support | Daniel Mensinger | 2019-01-22 | 2 | -8/+115 |
| | |||||
* | Removed the RewriteIntrepreter | Daniel Mensinger | 2019-01-22 | 2 | -146/+1 |
| | |||||
* | AST post processing | Daniel Mensinger | 2019-01-22 | 4 | -72/+164 |
| | |||||
* | Moved the introspection interpreter | Daniel Mensinger | 2019-01-22 | 3 | -5/+129 |
| | |||||
* | Added Ast printer | Daniel Mensinger | 2019-01-22 | 2 | -3/+193 |
| | |||||
* | Basic AST visitor pattern | Daniel Mensinger | 2019-01-22 | 4 | -0/+497 |