summaryrefslogtreecommitdiffstats
path: root/src/stat_cache.cc
Commit message (Collapse)AuthorAgeFilesLines
* merge StatCache into StateEvan Martin2011-12-071-68/+0
| | | | | | 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.
* merge FileStat into NodeEvan Martin2011-12-071-14/+19
| | | | | | The two were always one-to-one anyway. I started adding accessors to FileStat and then realized most users wanted them on Node and that forwarding them through was silly.
* Add spelling suggestions for four cases:Nico Weber2011-11-161-0/+18
| | | | | | | | | | | 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-1/+3
| | | | | dirty_ is intended to remain static during the build (unless a restat occurs), while outputs_ready_ reflects the dynamic state of the build.
* Modify the build tests to use the virtual file systemPeter Collingbourne2011-09-141-0/+5
|
* generalize the pattern of hash_map<const char*, ...>, use in BuildLogEvan Martin2011-09-121-3/+2
| | | | | | Refactor the code in StatCache for use in BuildLog. Now both use hash tables where the keys are const char*. Removes another 30ms from Chrome no-op builds.
* change main hash to char*; use pointers into filesEvan Martin2011-09-101-2/+3
| | | | | This has a small (20ms) effect on Chrome, but it will also be used more as I remove more strings.
* ninja: Split StatCache struct into its own header file.Thiago Farina2011-05-311-0/+38
Note: This is a TODO in ninja_jumble.cc. Signed-off-by: Thiago Farina <tfarina@chromium.org>