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/filesystem_utils.h

Issue 2265833002: Implement `gn analyze`. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sample tests Created 4 years, 4 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
Index: tools/gn/filesystem_utils.h
diff --git a/tools/gn/filesystem_utils.h b/tools/gn/filesystem_utils.h
index f53f24a3eb154e57f5a505136c565906178c187d..3e3c76d8324da50b1da207e82108d9a9d7e2d6d6 100644
--- a/tools/gn/filesystem_utils.h
+++ b/tools/gn/filesystem_utils.h
@@ -175,6 +175,11 @@ bool WriteFileIfChanged(const base::FilePath& file_path,
const std::string& data,
Err* err);
+// Writes given stream contents to the given file. Returns true if data was
+// successfully written, false otherwise. |err| is set on error if not nullptr.
+bool WriteFile(const base::FilePath& file_path, const std::string& data,
+ Err* err);
+
// -----------------------------------------------------------------------------
enum class BuildDirType {
« no previous file with comments | « tools/gn/commands.cc ('k') | tools/gn/filesystem_utils.cc » ('j') | tools/gn/gn.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698