Ninja
|
An Env for an Edge, providing $in and $out. More...
Public Types | |
enum | EscapeKind { kShellEscape, kDoNotEscape } |
Public Member Functions | |
EdgeEnv (Edge *edge, EscapeKind escape) | |
virtual string | LookupVariable (const string &var) |
string | MakePathList (vector< Node * >::iterator begin, vector< Node * >::iterator end, char sep) |
Given a span of Nodes, construct a list of paths suitable for a command line. More... | |
Public Attributes | |
Edge * | edge_ |
EscapeKind | escape_in_out_ |
enum EdgeEnv::EscapeKind |
|
inlineexplicit |
|
virtual |
Implements Env.
Definition at line 234 of file graph.cc.
References edge_, Edge::env_, Rule::GetBinding(), Edge::implicit_deps_, Edge::inputs_, BindingEnv::LookupWithFallback(), MakePathList(), Edge::order_only_deps_, Edge::outputs_, and Edge::rule_.
Referenced by Edge::GetBinding(), Edge::GetUnescapedDepfile(), and Edge::GetUnescapedRspfile().
string EdgeEnv::MakePathList | ( | vector< Node * >::iterator | begin, |
vector< Node * >::iterator | end, | ||
char | sep | ||
) |
Given a span of Nodes, construct a list of paths suitable for a command line.
Definition at line 252 of file graph.cc.
References escape_in_out_, GetShellEscapedString(), GetWin32EscapedString(), and kShellEscape.
Referenced by LookupVariable().
Edge* EdgeEnv::edge_ |
Definition at line 230 of file graph.cc.
Referenced by LookupVariable().
EscapeKind EdgeEnv::escape_in_out_ |
Definition at line 231 of file graph.cc.
Referenced by MakePathList().