|
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... | |
Private Attributes | |
| Edge * | edge_ |
| EscapeKind | escape_in_out_ |
| vector< string > | lookups_ |
| bool | recursive_ |
| enum EdgeEnv::EscapeKind |
|
inline |
|
virtual |
Implements Env.
Definition at line 305 of file graph.cc.
References edge_, Edge::env_, Fatal(), Rule::GetBinding(), Edge::implicit_deps_, Edge::implicit_outs_, Edge::inputs_, lookups_, BindingEnv::LookupWithFallback(), MakePathList(), Edge::order_only_deps_, Edge::outputs_, recursive_, 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 341 of file graph.cc.
References escape_in_out_, GetShellEscapedString(), GetWin32EscapedString(), and kShellEscape.
Referenced by LookupVariable().
|
private |
Definition at line 300 of file graph.cc.
Referenced by LookupVariable().
|
private |
Definition at line 301 of file graph.cc.
Referenced by MakePathList().
|
private |
Definition at line 299 of file graph.cc.
Referenced by LookupVariable().
|
private |
Definition at line 302 of file graph.cc.
Referenced by LookupVariable().
1.8.14