diff options
author | Dan Willemsen <dwillemsen@google.com> | 2017-10-11 22:17:48 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2017-10-11 22:20:49 -0700 |
commit | 3ce083f01d6e62e9fb9b328e312d97a074fe6128 (patch) | |
tree | c7f3d604ed57e0afb6eb591c1e531fd5373b2036 /eval.h | |
parent | bf6a27c3d31d1f0143e62461058a6d81b2242fbe (diff) | |
download | kati-3ce083f01d6e62e9fb9b328e312d97a074fe6128.tar.gz |
`clang-format -i -style=file *.cc *.h`
Change-Id: I62a87c5d8309b21265e904c0aeb9b3e094c9024a
Diffstat (limited to 'eval.h')
-rw-r--r-- | eval.h | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -53,9 +53,7 @@ class Evaluator { void set_loc(const Loc& loc) { loc_ = loc; } const vector<const Rule*>& rules() const { return rules_; } - const unordered_map<Symbol, Vars*>& rule_vars() const { - return rule_vars_; - } + const unordered_map<Symbol, Vars*>& rule_vars() const { return rule_vars_; } const unordered_map<Symbol, bool>& exports() const { return exports_; } void Error(const string& msg); @@ -74,28 +72,25 @@ class Evaluator { void add_delayed_output_command(const string& c) { delayed_output_commands_.push_back(c); } - void clear_delayed_output_commands() { - delayed_output_commands_.clear(); - } + void clear_delayed_output_commands() { delayed_output_commands_.clear(); } static const unordered_set<Symbol>& used_undefined_vars() { return used_undefined_vars_; } int eval_depth() const { return eval_depth_; } - void IncrementEvalDepth() { - eval_depth_++; - } - void DecrementEvalDepth() { - eval_depth_--; - } + void IncrementEvalDepth() { eval_depth_++; } + void DecrementEvalDepth() { eval_depth_--; } string GetShell(); string GetShellFlag(); string GetShellAndFlag(); private: - Var* EvalRHS(Symbol lhs, Value* rhs, StringPiece orig_rhs, AssignOp op, + Var* EvalRHS(Symbol lhs, + Value* rhs, + StringPiece orig_rhs, + AssignOp op, bool is_override = false); void DoInclude(const string& fname); |