diff options
Diffstat (limited to 'src/ninja.h')
-rw-r--r-- | src/ninja.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ninja.h b/src/ninja.h index 2590e63..f387ffc 100644 --- a/src/ninja.h +++ b/src/ninja.h @@ -73,6 +73,9 @@ struct State { Node* LookupNode(const string& path); void AddIn(Edge* edge, const string& path); void AddOut(Edge* edge, const string& path); + /// @return the root node(s) of the graph. (Root nodes have no input edges). + /// @param error where to write the error message if somethings went wrong. + vector<Node*> RootNodes(string* error); StatCache stat_cache_; /// All the rules used in the graph. |