summaryrefslogtreecommitdiffstats
path: root/src/graph.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-07 17:43:29 (GMT)
committerEvan Martin <martine@danga.com>2011-12-07 17:46:19 (GMT)
commit2863acbe2a3ab11c0a6d5efa93c0491cac63d72a (patch)
tree47f16ec855905ca14a88615a38223508fc0e6ddc /src/graph.h
parent63d136fb891f365b551621220ce3dd1022c14182 (diff)
downloadNinja-2863acbe2a3ab11c0a6d5efa93c0491cac63d72a.zip
Ninja-2863acbe2a3ab11c0a6d5efa93c0491cac63d72a.tar.gz
Ninja-2863acbe2a3ab11c0a6d5efa93c0491cac63d72a.tar.bz2
make Rule::name_ private
Diffstat (limited to 'src/graph.h')
-rw-r--r--src/graph.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graph.h b/src/graph.h
index 97b0644..e8c6c57 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -99,7 +99,14 @@ private:
struct Rule {
Rule(const string& name) : name_(name), generator_(false), restat_(false) { }
+ const string& name() const { return name_; }
+
+private:
string name_;
+
+ // TODO: make these private. But adding set/getters for each is so boring
+ // and doesn't really contribute to the readability of the code...
+public:
EvalString command_;
EvalString description_;
EvalString depfile_;