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

Unified Diff: tools/gn/function_read_file.cc

Issue 2481423002: Convert gn docstrings to C++11 raw strings. (Closed)
Patch Set: Fixes Created 4 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/function_process_file_template.cc ('k') | tools/gn/function_rebase_path.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/function_read_file.cc
diff --git a/tools/gn/function_read_file.cc b/tools/gn/function_read_file.cc
index 11585d8961531d8046a4531cc8cab1580a2ea12e..ed37ef0cac266535b85b7ecff110c3ab740fccf6 100644
--- a/tools/gn/function_read_file.cc
+++ b/tools/gn/function_read_file.cc
@@ -20,24 +20,25 @@ const char kReadFile[] = "read_file";
const char kReadFile_HelpShort[] =
"read_file: Read a file into a variable.";
const char kReadFile_Help[] =
- "read_file: Read a file into a variable.\n"
- "\n"
- " read_file(filename, input_conversion)\n"
- "\n"
- " Whitespace will be trimmed from the end of the file. Throws an error\n"
- " if the file can not be opened.\n"
- "\n"
- "Arguments:\n"
- "\n"
- " filename\n"
- " Filename to read, relative to the build file.\n"
- "\n"
- " input_conversion\n"
- " Controls how the file is read and parsed.\n"
- " See \"gn help input_conversion\".\n"
- "\n"
- "Example\n"
- " lines = read_file(\"foo.txt\", \"list lines\")\n";
+ R"(read_file: Read a file into a variable.
+
+ read_file(filename, input_conversion)
+
+ Whitespace will be trimmed from the end of the file. Throws an error if the
+ file can not be opened.
+
+Arguments
+
+ filename
+ Filename to read, relative to the build file.
+
+ input_conversion
+ Controls how the file is read and parsed. See "gn help input_conversion".
+
+Example
+
+ lines = read_file("foo.txt", "list lines")
+)";
Value RunReadFile(Scope* scope,
const FunctionCallNode* function,
« no previous file with comments | « tools/gn/function_process_file_template.cc ('k') | tools/gn/function_rebase_path.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698