diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2019-08-02 12:57:51 (GMT) |
---|---|---|
committer | Jan Niklas Hasse <jhasse@bixense.com> | 2019-08-02 12:57:51 (GMT) |
commit | 66b4cc94c4f2d34289cc6bfa827e7cb862a70c67 (patch) | |
tree | 5b08f32006f5332e3f17d505bae2453ac1f11f41 /src/graph.h | |
parent | e0bc2e5fd9036a31d507881e1383adde3672aaef (diff) | |
download | Ninja-66b4cc94c4f2d34289cc6bfa827e7cb862a70c67.zip Ninja-66b4cc94c4f2d34289cc6bfa827e7cb862a70c67.tar.gz Ninja-66b4cc94c4f2d34289cc6bfa827e7cb862a70c67.tar.bz2 |
Improve const-correctness in compdb related methods
Diffstat (limited to 'src/graph.h')
-rw-r--r-- | src/graph.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graph.h b/src/graph.h index 75edbc5..6122837 100644 --- a/src/graph.h +++ b/src/graph.h @@ -155,10 +155,10 @@ struct Edge { /// Expand all variables in a command and return it as a string. /// If incl_rsp_file is enabled, the string will also contain the /// full contents of a response file (if applicable) - string EvaluateCommand(bool incl_rsp_file = false); + std::string EvaluateCommand(bool incl_rsp_file = false) const; /// Returns the shell-escaped value of |key|. - string GetBinding(const string& key); + std::string GetBinding(const string& key) const; bool GetBindingBool(const string& key); /// Like GetBinding("depfile"), but without shell escaping. @@ -166,7 +166,7 @@ struct Edge { /// Like GetBinding("dyndep"), but without shell escaping. string GetUnescapedDyndep(); /// Like GetBinding("rspfile"), but without shell escaping. - string GetUnescapedRspfile(); + std::string GetUnescapedRspfile() const; void Dump(const char* prefix="") const; |