summaryrefslogtreecommitdiffstats
path: root/src/graph.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2013-01-04 17:39:01 (GMT)
committerEvan Martin <martine@danga.com>2013-04-08 21:45:07 (GMT)
commit85a4db7822d1b433eff8cf9f94f8f1dab3f0b23d (patch)
treeb5fbd90896931bb1ffbaedf25739dd2f3e84d2b4 /src/graph.h
parentc683ca7d0d9281ef8fc7cb2c4ec022ebc861b745 (diff)
downloadNinja-85a4db7822d1b433eff8cf9f94f8f1dab3f0b23d.zip
Ninja-85a4db7822d1b433eff8cf9f94f8f1dab3f0b23d.tar.gz
Ninja-85a4db7822d1b433eff8cf9f94f8f1dab3f0b23d.tar.bz2
add "special=gcc" attribute, use to load depslog
Diffstat (limited to 'src/graph.h')
-rw-r--r--src/graph.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/graph.h b/src/graph.h
index d943702..a7b60db 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -192,10 +192,19 @@ struct ImplicitDepLoader {
DiskInterface* disk_interface)
: state_(state), disk_interface_(disk_interface), deps_log_(deps_log) {}
+ /// Load implicit dependencies for \a edge.
+ /// @return false on error (without filling \a err if info is just missing).
+ bool LoadDeps(Edge* edge, string* err);
+
+ private:
+ /// Load implicit dependencies for \a edge from a depfile attribute.
+ /// @return false on error (without filling \a err if info is just missing).
bool LoadDepFile(Edge* edge, const string& path, string* err);
+
+ /// Load implicit dependencies for \a edge from the DepsLog.
+ /// @return false on error (without filling \a err if info is just missing).
bool LoadDepsFromLog(Edge* edge, string* err);
- private:
/// Preallocate \a count spaces in the input array on \a edge, returning
/// an iterator pointing at the first new space.
vector<Node*>::iterator PreallocateSpace(Edge* edge, int count);