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

Side by Side Diff: tools/gn/function_get_path_info.cc

Issue 1318963007: gn: fix documentation typo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « tools/gn/docs/reference.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "tools/gn/err.h" 5 #include "tools/gn/err.h"
6 #include "tools/gn/filesystem_utils.h" 6 #include "tools/gn/filesystem_utils.h"
7 #include "tools/gn/functions.h" 7 #include "tools/gn/functions.h"
8 #include "tools/gn/parse_tree.h" 8 #include "tools/gn/parse_tree.h"
9 #include "tools/gn/scope.h" 9 #include "tools/gn/scope.h"
10 #include "tools/gn/value.h" 10 #include "tools/gn/value.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 " given file, not including a trailing slash.\n" 167 " given file, not including a trailing slash.\n"
168 " \"//foo/bar/baz.txt\" => \"//out/Default/obj/foo/bar\"\n" 168 " \"//foo/bar/baz.txt\" => \"//out/Default/obj/foo/bar\"\n"
169 169
170 " \"gen_dir\"\n" 170 " \"gen_dir\"\n"
171 " The generated file directory corresponding to the path of the\n" 171 " The generated file directory corresponding to the path of the\n"
172 " given file, not including a trailing slash.\n" 172 " given file, not including a trailing slash.\n"
173 " \"//foo/bar/baz.txt\" => \"//out/Default/gen/foo/bar\"\n" 173 " \"//foo/bar/baz.txt\" => \"//out/Default/gen/foo/bar\"\n"
174 "\n" 174 "\n"
175 " \"abspath\"\n" 175 " \"abspath\"\n"
176 " The full absolute path name to the file or directory. It will be\n" 176 " The full absolute path name to the file or directory. It will be\n"
177 " resolved relative to the currebt directory, and then the source-\n" 177 " resolved relative to the current directory, and then the source-\n"
178 " absolute version will be returned. If the input is system-\n" 178 " absolute version will be returned. If the input is system-\n"
179 " absolute, the same input will be returned.\n" 179 " absolute, the same input will be returned.\n"
180 " \"foo/bar.txt\" => \"//mydir/foo/bar.txt\"\n" 180 " \"foo/bar.txt\" => \"//mydir/foo/bar.txt\"\n"
181 " \"foo/\" => \"//mydir/foo/\"\n" 181 " \"foo/\" => \"//mydir/foo/\"\n"
182 " \"//foo/bar\" => \"//foo/bar\" (already absolute)\n" 182 " \"//foo/bar\" => \"//foo/bar\" (already absolute)\n"
183 " \"/usr/include\" => \"/usr/include\" (already absolute)\n" 183 " \"/usr/include\" => \"/usr/include\" (already absolute)\n"
184 "\n" 184 "\n"
185 " If you want to make the path relative to another directory, or to\n" 185 " If you want to make the path relative to another directory, or to\n"
186 " be system-absolute, see rebase_path().\n" 186 " be system-absolute, see rebase_path().\n"
187 "\n" 187 "\n"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 return Value(); 242 return Value();
243 } 243 }
244 return result; 244 return result;
245 } 245 }
246 246
247 *err = Err(args[0], "Path must be a string or a list of strings."); 247 *err = Err(args[0], "Path must be a string or a list of strings.");
248 return Value(); 248 return Value();
249 } 249 }
250 250
251 } // namespace functions 251 } // namespace functions
OLDNEW
« no previous file with comments | « tools/gn/docs/reference.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698