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

Unified Diff: tools/gn/visibility.cc

Issue 231813002: Improve GN public header file checking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/variables.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/visibility.cc
diff --git a/tools/gn/visibility.cc b/tools/gn/visibility.cc
index c03ef561bc51c3db033f5b22e7fc3b7cb63f05a2..41bfc63f412ef9a9734768be90bbd20071b41c79 100644
--- a/tools/gn/visibility.cc
+++ b/tools/gn/visibility.cc
@@ -78,11 +78,13 @@ bool Visibility::Set(const SourceDir& current_dir,
}
void Visibility::SetPublic() {
+ patterns_.clear();
patterns_.push_back(
VisPattern(VisPattern::RECURSIVE_DIRECTORY, SourceDir(), std::string()));
}
void Visibility::SetPrivate(const SourceDir& current_dir) {
+ patterns_.clear();
patterns_.push_back(
VisPattern(VisPattern::DIRECTORY, current_dir, std::string()));
}
« no previous file with comments | « tools/gn/variables.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698