OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef TOOLS_GN_SETUP_H_ | 5 #ifndef TOOLS_GN_SETUP_H_ |
6 #define TOOLS_GN_SETUP_H_ | 6 #define TOOLS_GN_SETUP_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 // dot file. | 143 // dot file. |
144 Settings dotfile_settings_; | 144 Settings dotfile_settings_; |
145 Scope dotfile_scope_; | 145 Scope dotfile_scope_; |
146 | 146 |
147 // State for invoking the dotfile. | 147 // State for invoking the dotfile. |
148 base::FilePath dotfile_name_; | 148 base::FilePath dotfile_name_; |
149 std::unique_ptr<InputFile> dotfile_input_file_; | 149 std::unique_ptr<InputFile> dotfile_input_file_; |
150 std::vector<Token> dotfile_tokens_; | 150 std::vector<Token> dotfile_tokens_; |
151 std::unique_ptr<ParseNode> dotfile_root_; | 151 std::unique_ptr<ParseNode> dotfile_root_; |
152 | 152 |
153 // Default overrides, specified in the dotfile. | |
brettw
2017/01/19 18:47:08
Can you add a comment here that this pointer is ow
timn
2017/01/21 02:52:45
Done.
| |
154 const Scope* default_args_; | |
155 | |
153 // Set to true when we should populate the build arguments from the command | 156 // Set to true when we should populate the build arguments from the command |
154 // line or build argument file. See setter above. | 157 // line or build argument file. See setter above. |
155 bool fill_arguments_; | 158 bool fill_arguments_; |
156 | 159 |
157 // State for invoking the command line args. We specifically want to keep | 160 // State for invoking the command line args. We specifically want to keep |
158 // this around for the entire run so that Values can blame to the command | 161 // this around for the entire run so that Values can blame to the command |
159 // line when we issue errors about them. | 162 // line when we issue errors about them. |
160 std::unique_ptr<InputFile> args_input_file_; | 163 std::unique_ptr<InputFile> args_input_file_; |
161 std::vector<Token> args_tokens_; | 164 std::vector<Token> args_tokens_; |
162 std::unique_ptr<ParseNode> args_root_; | 165 std::unique_ptr<ParseNode> args_root_; |
163 | 166 |
164 DISALLOW_COPY_AND_ASSIGN(Setup); | 167 DISALLOW_COPY_AND_ASSIGN(Setup); |
165 }; | 168 }; |
166 | 169 |
167 #endif // TOOLS_GN_SETUP_H_ | 170 #endif // TOOLS_GN_SETUP_H_ |
OLD | NEW |