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

Unified Diff: tools/gn/setup.h

Issue 137713007: Check for GN args using the union of all rather than individually. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/command_gyp.cc ('k') | tools/gn/setup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/setup.h
diff --git a/tools/gn/setup.h b/tools/gn/setup.h
index d2cbdf5743717f14fabfb9a366145b1cd723ef4e..56e6cad028d4d073a524ef5ac4f7785af7017116 100644
--- a/tools/gn/setup.h
+++ b/tools/gn/setup.h
@@ -39,6 +39,12 @@ class CommonSetup {
// cycles upon completion. When false, such errors will be ignored.
void set_check_for_bad_items(bool s) { check_for_bad_items_ = s; }
+ // When true (the default), RunPostMessageLoop will check for overrides that
+ // were specified but not used. When false, such errors will be ignored.
+ void set_check_for_unused_overrides(bool s) {
+ check_for_unused_overrides_ = s;
+ }
+
BuildSettings& build_settings() { return build_settings_; }
Builder* builder() { return builder_.get(); }
LoaderImpl* loader() { return loader_.get(); }
@@ -57,6 +63,7 @@ class CommonSetup {
scoped_refptr<Builder> builder_;
bool check_for_bad_items_;
+ bool check_for_unused_overrides_;
private:
CommonSetup& operator=(const CommonSetup& other); // Disallow.
« no previous file with comments | « tools/gn/command_gyp.cc ('k') | tools/gn/setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698