diff options
| author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-19 14:44:20 +0900 |
|---|---|---|
| committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-22 15:46:23 +0900 |
| commit | 4a7113136b40e77d65ffd2ed22d1162a9e6f126b (patch) | |
| tree | 75b08ef0cc006d388ebfdedcceb06db4701a9a67 /rule.cc | |
| parent | 9b16bda965b29b6ba5ce3178abf8e4655e5af044 (diff) | |
[C++] Implement pattern rules
Diffstat (limited to 'rule.cc')
| -rw-r--r-- | rule.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -42,7 +42,8 @@ bool IsPatternRule(StringPiece s) { Rule::Rule() : is_double_colon(false), is_suffix_rule(false), - cmd_lineno(0) { + cmd_lineno(0), + is_temporary(true) { } void ParseRule(Loc& loc, StringPiece line, @@ -87,6 +88,7 @@ void ParseRule(Loc& loc, StringPiece line, Rule* rule = new Rule(); *out_rule = rule; + rule->is_temporary = false; rule->loc = loc; rule->is_double_colon = is_double_colon; if (is_first_pattern) { |
