summaryrefslogtreecommitdiffstats
path: root/src/state.h
Commit message (Collapse)AuthorAgeFilesLines
* Misc typo fixes by https://github.com/codespell-project/codespell/Mo Zhou2018-09-061-1/+1
|
* Use uint64_t for slash_bits consistentlyDaniel Weber2016-09-011-3/+4
| | | | The VS compiler complained about possible loss of data (and it was right!)
* Constify State::RootNodes().Nicolas Despres2016-06-091-2/+2
|
* avoid calling ResumeDelayedJobs insteadScott Graham2015-04-241-3/+0
|
* add commentScott Graham2015-04-241-0/+3
|
* Fix pool use count going unbalancedScott Graham2015-04-231-0/+1
|
* Move warning emission on dupe edges from State to ManifestParser.Nico Weber2015-03-241-1/+1
| | | | | | | | This will make it easier to optionally make this an error (because ManifestParser has a way of printing errors), and it'll also make it easier to make the tests quiet again. No behavior change.
* Allow scoping rules through subninjaMohamed Bamakhrama2015-03-011-7/+1
| | | | | | | | Ninja didn't support scoping rules through subninja and assumed a unique rule name in the whole namespace. With this change, this behavior is changed to allow scoping rules. Two rules can have the same name if they belong to two different scopes. However, two rules can NOT have the same name in the same scope.
* remove two unneeded `explicit`sNico Weber2014-12-071-2/+2
|
* make all GetNode explicit, add DepsLog canonicalize testScott Graham2014-11-101-1/+0
|
* wip on adding tests at higher level, some not rightScott Graham2014-11-081-2/+3
|
* Introduce the "console" poolPeter Collingbourne2014-02-031-0/+1
| | | | | | | This is a pre-defined pool with a depth of 1. It has the special property that any task in the pool has direct access to the console. This can be useful for interactive tasks or long-running tasks which produce status updates on the console (such as test suites).
* Make BuildLogUser reference constant.Nico Weber2014-01-071-1/+1
|
* Remove a few unused includes.Nico Weber2013-05-121-1/+0
|
* Fix debug build on linux (type strictness).Robert Iannucci2013-03-231-1/+2
|
* Fix Pool to use a set internallyRobert Iannucci2013-03-181-2/+4
|
* Removed unused UnitsWaiting() function from State class.Thiago Farina2013-02-191-3/+1
| | | | | | | This function was added at 307f0bbd("and some basic implementation"), but nobody calls it anymore. Signed-off-by: Thiago Farina <tfarina@chromium.org>
* rearrange handling of builtin bindings to make rules simplerEvan Martin2012-12-291-1/+1
| | | | | Now, a 'build' block can override any special binding like 'command' or 'description' if it needs to.
* Remove unnecessary parameter from ShouldDelayEdgeRobert Iannucci2012-11-301-1/+1
|
* Rename isValidRobert Iannucci2012-11-301-1/+1
|
* Improve comments for src/state.hRobert Iannucci2012-11-301-3/+12
|
* Uninitialized variable! There is always one...Robert Iannucci2012-11-101-1/+1
|
* Dump pools with StateRobert Iannucci2012-11-091-3/+6
|
* Fix a bug... now chrome build works O_ORobert Iannucci2012-11-091-1/+1
|
* and some basic implementationRobert Iannucci2012-11-091-5/+7
|
* stub out an api and de-constify PoolRobert Iannucci2012-11-091-5/+27
|
* Const ref FTWRobert Iannucci2012-11-091-1/+1
|
* Pull out base changes to stateRobert Iannucci2012-11-091-1/+24
|
* move BuildLog to DependencyScanEvan Martin2012-09-041-2/+0
| | | | | | | The build log is needed in computing whether an edge is dirty, so I think it belongs here. (It's a bit weird that Builder needs to reach into it to record completed commands, maybe it will become cleaner with more thought.)
* Remove #pragma once from our header files.Thiago Farina2012-07-171-1/+0
| | | | | | https://github.com/martine/ninja/issues/358 Signed-off-by: Thiago Farina <tfarina@chromium.org>
* No need to write 'struct' before type name when declaraing variables in C++.Thiago Farina2012-05-231-1/+1
| | | | Signed-off-by: Thiago Farina <tfarina@chromium.org>
* more stringpieceEvan Martin2012-01-091-3/+3
|
* switch node lookup to StringPieceEvan Martin2012-01-091-2/+2
|
* more whitespaceEvan Martin2011-12-071-0/+4
|
* merge StatCache into StateEvan Martin2011-12-071-6/+10
| | | | | | I think I had originally imagined StatCache would contain more state, but at this point it's clear it was just managing a single map, which could just as well be in the already-small State object.
* Add spelling suggestions for four cases:Nico Weber2011-11-161-0/+1
| | | | | | | | | | | 1. For targets, when invoking ninja to build a target. 2. For targets, when doing a "query" command. 3. For command names. 4. For the subcommands of the "targets" command. Also change CmdTargets() to call LookupNode() instead of GetNode() -- since the result was checked for NULL, that's probably what was intended here originally.
* Split Node::dirty_ into two flags: Node::dirty_ and Edge::outputs_ready_Peter Collingbourne2011-10-181-0/+1
| | | | | dirty_ is intended to remain static during the build (unless a restat occurs), while outputs_ready_ reflects the dynamic state of the build.
* Factor out State struct from ninja_jumble.cc into its header/source files.Thiago Farina2011-09-031-0/+68
This was a TODO in src/ninja_jumble.cc. Now this task is completed. Signed-off-by: Thiago Farina <tfarina@chromium.org>