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

Unified Diff: tools/gn/visibility.h

Issue 306013007: Minor improvements to GN's "desc" output. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_desc.cc ('k') | tools/gn/visibility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/visibility.h
diff --git a/tools/gn/visibility.h b/tools/gn/visibility.h
index 52ec73ca15915811980d464f7d228c57dc671a6e..7ce2b7845f702b46f0a20db9252959abbd0de918 100644
--- a/tools/gn/visibility.h
+++ b/tools/gn/visibility.h
@@ -68,8 +68,11 @@ class Visibility {
// current visibility.
bool CanSeeMe(const Label& label) const;
- // Returns a string listing the visibility.
- std::string Describe() const;
+ // Returns a string listing the visibility. |indent| number of spaces will
+ // be added on the left side of the output. If |include_brackets| is set, the
+ // result will be wrapped in "[ ]" and the contents further indented. The
+ // result will end in a newline.
+ std::string Describe(int indent, bool include_brackets) const;
// Converts the given input string to a pattern. This does special stuff
// to treat the pattern as a label. Sets the error on failure.
« no previous file with comments | « tools/gn/command_desc.cc ('k') | tools/gn/visibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698