Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: tools/gn/loader.h

Issue 1905473003: 🐣 GN: Print the import trail when parse errors occur. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move is_null() to header Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/import_manager.cc ('k') | tools/gn/loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_LOADER_H_ 5 #ifndef TOOLS_GN_LOADER_H_
6 #define TOOLS_GN_LOADER_H_ 6 #define TOOLS_GN_LOADER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const LocationRange& origin, 122 const LocationRange& origin,
123 const SourceFile& file); 123 const SourceFile& file);
124 void ScheduleLoadBuildConfig( 124 void ScheduleLoadBuildConfig(
125 Settings* settings, 125 Settings* settings,
126 const Scope::KeyValueMap& toolchain_overrides); 126 const Scope::KeyValueMap& toolchain_overrides);
127 127
128 // Runs the given file on the background thread. These are called by the 128 // Runs the given file on the background thread. These are called by the
129 // input file manager. 129 // input file manager.
130 void BackgroundLoadFile(const Settings* settings, 130 void BackgroundLoadFile(const Settings* settings,
131 const SourceFile& file_name, 131 const SourceFile& file_name,
132 const LocationRange& origin,
132 const ParseNode* root); 133 const ParseNode* root);
133 void BackgroundLoadBuildConfig( 134 void BackgroundLoadBuildConfig(
134 Settings* settings, 135 Settings* settings,
135 const Scope::KeyValueMap& toolchain_overrides, 136 const Scope::KeyValueMap& toolchain_overrides,
136 const ParseNode* root); 137 const ParseNode* root);
137 138
138 // Posted to the main thread when any file other than a build config file 139 // Posted to the main thread when any file other than a build config file
139 // file has completed running. 140 // file has completed running.
140 void DidLoadFile(); 141 void DidLoadFile();
141 142
(...skipping 30 matching lines...) Expand all
172 173
173 const BuildSettings* build_settings_; 174 const BuildSettings* build_settings_;
174 Label default_toolchain_label_; 175 Label default_toolchain_label_;
175 176
176 // Records for the build config file loads. 177 // Records for the build config file loads.
177 typedef std::map<Label, std::unique_ptr<ToolchainRecord>> ToolchainRecordMap; 178 typedef std::map<Label, std::unique_ptr<ToolchainRecord>> ToolchainRecordMap;
178 ToolchainRecordMap toolchain_records_; 179 ToolchainRecordMap toolchain_records_;
179 }; 180 };
180 181
181 #endif // TOOLS_GN_LOADER_H_ 182 #endif // TOOLS_GN_LOADER_H_
OLDNEW
« no previous file with comments | « tools/gn/import_manager.cc ('k') | tools/gn/loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698