OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "tools/gn/tool.h" | 5 #include "tools/gn/tool.h" |
6 | 6 |
7 Tool::Tool() | 7 Tool::Tool() |
8 : depsformat_(DEPS_GCC), | 8 : depsformat_(DEPS_GCC), |
| 9 precompiled_header_type_(PCH_NONE), |
9 restat_(false), | 10 restat_(false), |
10 complete_(false) { | 11 complete_(false) { |
11 } | 12 } |
12 | 13 |
13 Tool::~Tool() { | 14 Tool::~Tool() { |
14 } | 15 } |
15 | 16 |
16 void Tool::SetComplete() { | 17 void Tool::SetComplete() { |
17 DCHECK(!complete_); | 18 DCHECK(!complete_); |
18 complete_ = true; | 19 complete_ = true; |
19 | 20 |
20 command_.FillRequiredTypes(&substitution_bits_); | 21 command_.FillRequiredTypes(&substitution_bits_); |
21 depfile_.FillRequiredTypes(&substitution_bits_); | 22 depfile_.FillRequiredTypes(&substitution_bits_); |
22 description_.FillRequiredTypes(&substitution_bits_); | 23 description_.FillRequiredTypes(&substitution_bits_); |
23 outputs_.FillRequiredTypes(&substitution_bits_); | 24 outputs_.FillRequiredTypes(&substitution_bits_); |
24 link_output_.FillRequiredTypes(&substitution_bits_); | 25 link_output_.FillRequiredTypes(&substitution_bits_); |
25 depend_output_.FillRequiredTypes(&substitution_bits_); | 26 depend_output_.FillRequiredTypes(&substitution_bits_); |
26 rspfile_.FillRequiredTypes(&substitution_bits_); | 27 rspfile_.FillRequiredTypes(&substitution_bits_); |
27 rspfile_content_.FillRequiredTypes(&substitution_bits_); | 28 rspfile_content_.FillRequiredTypes(&substitution_bits_); |
28 } | 29 } |
OLD | NEW |