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

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

Issue 429423002: Refactor GN source expansions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/gn/command_desc.cc ('k') | tools/gn/copy_target_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 <algorithm> 5 #include <algorithm>
6 #include <iostream> 6 #include <iostream>
7 7
8 #include "tools/gn/args.h" 8 #include "tools/gn/args.h"
9 #include "tools/gn/commands.h" 9 #include "tools/gn/commands.h"
10 #include "tools/gn/err.h" 10 #include "tools/gn/err.h"
11 #include "tools/gn/file_template.h"
12 #include "tools/gn/functions.h" 11 #include "tools/gn/functions.h"
13 #include "tools/gn/input_conversion.h" 12 #include "tools/gn/input_conversion.h"
14 #include "tools/gn/pattern.h" 13 #include "tools/gn/pattern.h"
15 #include "tools/gn/setup.h" 14 #include "tools/gn/setup.h"
16 #include "tools/gn/standard_out.h" 15 #include "tools/gn/standard_out.h"
16 #include "tools/gn/substitution_writer.h"
17 #include "tools/gn/variables.h" 17 #include "tools/gn/variables.h"
18 18
19 namespace commands { 19 namespace commands {
20 20
21 namespace { 21 namespace {
22 22
23 void PrintToplevelHelp() { 23 void PrintToplevelHelp() {
24 OutputString("Commands (type \"gn help <command>\" for more details):\n"); 24 OutputString("Commands (type \"gn help <command>\" for more details):\n");
25 25
26 const commands::CommandInfoMap& command_map = commands::GetCommands(); 26 const commands::CommandInfoMap& command_map = commands::GetCommands();
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 return 0; 175 return 0;
176 } 176 }
177 177
178 // No help on this. 178 // No help on this.
179 Err(Location(), "No help on \"" + args[0] + "\".").PrintToStdout(); 179 Err(Location(), "No help on \"" + args[0] + "\".").PrintToStdout();
180 RunHelp(std::vector<std::string>()); 180 RunHelp(std::vector<std::string>());
181 return 1; 181 return 1;
182 } 182 }
183 183
184 } // namespace commands 184 } // namespace commands
OLDNEW
« no previous file with comments | « tools/gn/command_desc.cc ('k') | tools/gn/copy_target_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698