15 #ifndef NINJA_DEPS_LOG_H_ 16 #define NINJA_DEPS_LOG_H_ 73 bool OpenForWrite(
const std::string& path, std::string* err);
91 bool Recompact(
const std::string& path, std::string* err);
103 const std::vector<Deps*>&
deps()
const {
return deps_; }
128 #endif // NINJA_DEPS_LOG_H_
const std::vector< Node * > & nodes() const
Used for tests.
bool OpenForWriteIfNeeded()
Should be called before using file_.
Information about a node in the dependency graph: the file, whether it's dirty, mtime, etc.
LoadStatus Load(const std::string &path, State *state, std::string *err)
bool Recompact(const std::string &path, std::string *err)
Rewrite the known log entries, throwing away old data.
As build commands run they can output extra dependency information (e.g.
signed long long int64_t
A 64-bit integer type.
bool RecordDeps(Node *node, TimeStamp mtime, const std::vector< Node *> &nodes)
Deps * GetDeps(Node *node)
Deps(int64_t mtime, int node_count)
bool RecordId(Node *node)
bool OpenForWrite(const std::string &path, std::string *err)
std::vector< Node * > nodes_
Maps id -> Node.
Global state (file status) for a single run.
const std::vector< Deps * > & deps() const
friend struct DepsLogTest
std::vector< Deps * > deps_
Maps id -> deps of that id.
bool UpdateDeps(int out_id, Deps *deps)
bool IsDepsEntryLiveFor(Node *node)
Returns if the deps entry for a node is still reachable from the manifest.