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

Unified Diff: tools/gn/source_dir.h

Issue 80463004: GN generator for GYP actions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/scope_per_file_provider.cc ('k') | tools/gn/source_dir.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/source_dir.h
diff --git a/tools/gn/source_dir.h b/tools/gn/source_dir.h
index 4aa344a122ddce7efd813eceea7fae7e1f2b9e90..99be5c37ec7b12e556cc6968e0ab9d36364e4b7d 100644
--- a/tools/gn/source_dir.h
+++ b/tools/gn/source_dir.h
@@ -23,8 +23,13 @@ class SourceFile;
// Two slashes at the beginning indicate a path relative to the source root.
class SourceDir {
public:
+ enum SwapIn { SWAP_IN };
+
SourceDir();
explicit SourceDir(const base::StringPiece& p);
+ // Swaps the given string in without copies. The given string will be empty
+ // after this call.
+ SourceDir(SwapIn, std::string* s);
~SourceDir();
// Resolves a file or dir name relative to this source directory. Will return
@@ -73,7 +78,7 @@ class SourceDir {
return base::StringPiece(&value_[1], value_.size() - 1);
}
- void SwapInValue(std::string* v);
+ void SwapValue(std::string* v);
bool operator==(const SourceDir& other) const {
return value_ == other.value_;
« no previous file with comments | « tools/gn/scope_per_file_provider.cc ('k') | tools/gn/source_dir.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698