|
Ninja
|
An Env for an Edge, providing $in and $out. More...

Public Types | |
| enum | EscapeKind { kShellEscape , kDoNotEscape } |
Public Member Functions | |
| EdgeEnv (const Edge *const edge, const EscapeKind escape) | |
| virtual string | LookupVariable (const string &var) |
| virtual std::string | LookupVariable (const std::string &var)=0 |
| std::string | MakePathList (const Node *const *span, size_t size, char sep) const |
| Given a span of Nodes, construct a list of paths suitable for a command line. | |
Private Attributes | |
| const Edge *const | edge_ |
| EscapeKind | escape_in_out_ |
| std::vector< std::string > | lookups_ |
| bool | recursive_ |
| enum EdgeEnv::EscapeKind |
|
inline |
Definition at line 394 of file graph.cc.
References edge_, escape_in_out_, and recursive_.
|
virtual |
Definition at line 409 of file graph.cc.
References edge_, Fatal(), lookups_, MakePathList(), and recursive_.
Referenced by Edge::GetBinding(), Edge::GetUnescapedDepfile(), Edge::GetUnescapedDyndep(), and Edge::GetUnescapedRspfile().
|
pure virtualinherited |
Implemented in BindingEnv.
Referenced by EvalString::Evaluate().
| std::string EdgeEnv::MakePathList | ( | const Node *const * | span, |
| size_t | size, | ||
| char | sep ) const |
Given a span of Nodes, construct a list of paths suitable for a command line.
Definition at line 481 of file graph.cc.
References escape_in_out_, GetShellEscapedString(), GetWin32EscapedString(), and kShellEscape.
Referenced by LookupVariable().
|
private |
Definition at line 404 of file graph.cc.
Referenced by EdgeEnv(), and LookupVariable().
|
private |
Definition at line 405 of file graph.cc.
Referenced by EdgeEnv(), and MakePathList().
|
private |
Definition at line 403 of file graph.cc.
Referenced by LookupVariable().
|
private |
Definition at line 406 of file graph.cc.
Referenced by EdgeEnv(), and LookupVariable().