summaryrefslogtreecommitdiffstats
path: root/src/graph.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-09-04 22:43:45 (GMT)
committerEvan Martin <martine@danga.com>2012-09-04 22:43:45 (GMT)
commitc9f4a275a5794b60bdb2d8a4a4e9358b060d550c (patch)
tree0ef380a813847b30ec3c97b28435e20a034c18d8 /src/graph.h
parent1e11c8a6bd119025efd8725370ffa42354f92f88 (diff)
downloadNinja-c9f4a275a5794b60bdb2d8a4a4e9358b060d550c.zip
Ninja-c9f4a275a5794b60bdb2d8a4a4e9358b060d550c.tar.gz
Ninja-c9f4a275a5794b60bdb2d8a4a4e9358b060d550c.tar.bz2
clarify setter
Diffstat (limited to 'src/graph.h')
-rw-r--r--src/graph.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graph.h b/src/graph.h
index 893ec09..0e203b4 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -112,12 +112,14 @@ struct Rule {
bool restat() const { return restat_; }
const EvalString& command() const { return command_; }
- EvalString& command() { return command_; }
const EvalString& description() const { return description_; }
const EvalString& depfile() const { return depfile_; }
const EvalString& rspfile() const { return rspfile_; }
const EvalString& rspfile_content() const { return rspfile_content_; }
+ /// Used by a test.
+ void set_command(const EvalString& command) { command_ = command; }
+
private:
// Allow the parsers to reach into this object and fill out its fields.
friend struct ManifestParser;