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

Unified Diff: tools/gn/analyzer.h

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Fix compilation after rebase. Created 3 years, 6 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 | « base/containers/flat_tree.h ('k') | tools/gn/analyzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/analyzer.h
diff --git a/tools/gn/analyzer.h b/tools/gn/analyzer.h
index 130ebe95ce3447c59f6423169128d31c803a9df6..2a016e0fca692f05652a1f6e45c7f945ff24c6f4 100644
--- a/tools/gn/analyzer.h
+++ b/tools/gn/analyzer.h
@@ -24,7 +24,9 @@ class Analyzer {
using SourceFileSet = std::set<const SourceFile*>;
using TargetSet = std::set<const Target*>;
- explicit Analyzer(const Builder& builder);
+ Analyzer(const Builder& builder,
+ const SourceFile& build_config_file,
+ const SourceFile& dotgn_file);
~Analyzer();
// Figures out from a Buider and a JSON-formatted string containing lists
@@ -83,6 +85,8 @@ class Analyzer {
void AddAllRefsTo(const Target* target, TargetSet* matches) const;
+ bool WereMainGNFilesModified(const SourceFileSet& source_files) const;
+
std::vector<const Target*> all_targets_;
std::map<const Label, const Target*> labels_to_targets_;
Label default_toolchain_;
@@ -90,6 +94,8 @@ class Analyzer {
// Maps targets to the list of targets that depend on them.
std::multimap<const Target*, const Target*> dep_map_;
+ SourceFile build_config_file_;
+ SourceFile dotgn_file_;
};
#endif // TOOLS_GN_ANALYZER_H_
« no previous file with comments | « base/containers/flat_tree.h ('k') | tools/gn/analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698