summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Farina <tfarina@chromium.org>2012-02-12 18:25:38 (GMT)
committerThiago Farina <tfarina@chromium.org>2012-02-16 11:05:14 (GMT)
commit08500c263c239d84d48cc69cd52a14aace769d8a (patch)
tree8e9e4b20c5454031755621db411a7b6340b31d1a
parent0eebd5fe1dec021a63110ecab8fa411f9980745f (diff)
downloadNinja-08500c263c239d84d48cc69cd52a14aace769d8a.zip
Ninja-08500c263c239d84d48cc69cd52a14aace769d8a.tar.gz
Ninja-08500c263c239d84d48cc69cd52a14aace769d8a.tar.bz2
Fix the TODO in graph.h.
Signed-off-by: Thiago Farina <tfarina@chromium.org>
-rw-r--r--src/graph.h3
-rw-r--r--src/state_test.cc8
2 files changed, 5 insertions, 6 deletions
diff --git a/src/graph.h b/src/graph.h
index 6ba82b9..c83d790 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -109,8 +109,7 @@ struct Rule {
const EvalString& description() const { return description_; }
const EvalString& depfile() const { return depfile_; }
- // TODO: private:
-
+ private:
// Allow the parsers to reach into this object and fill out its fields.
friend struct ManifestParser;
diff --git a/src/state_test.cc b/src/state_test.cc
index e9d8174..354468b 100644
--- a/src/state_test.cc
+++ b/src/state_test.cc
@@ -23,10 +23,10 @@ TEST(State, Basic) {
State state;
Rule* rule = new Rule("cat");
- rule->command_.AddText("cat ");
- rule->command_.AddSpecial("in");
- rule->command_.AddText(" > ");
- rule->command_.AddSpecial("out");
+ rule->command().AddText("cat ");
+ rule->command().AddSpecial("in");
+ rule->command().AddText(" > ");
+ rule->command().AddSpecial("out");
state.AddRule(rule);
Edge* edge = state.AddEdge(rule);