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

Side by Side Diff: tools/gn/commands.h

Issue 2265833002: Implement `gn analyze`. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: do not pretty print the written json; this gets around crlf issues Created 4 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/command_analyze.cc ('k') | tools/gn/commands.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 #ifndef TOOLS_GN_COMMANDS_H_ 5 #ifndef TOOLS_GN_COMMANDS_H_
6 #define TOOLS_GN_COMMANDS_H_ 6 #define TOOLS_GN_COMMANDS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 11 matching lines...) Expand all
22 class SourceFile; 22 class SourceFile;
23 class Target; 23 class Target;
24 class Toolchain; 24 class Toolchain;
25 25
26 // Each "Run" command returns the value we should return from main(). 26 // Each "Run" command returns the value we should return from main().
27 27
28 namespace commands { 28 namespace commands {
29 29
30 typedef int (*CommandRunner)(const std::vector<std::string>&); 30 typedef int (*CommandRunner)(const std::vector<std::string>&);
31 31
32 extern const char kAnalyze[];
33 extern const char kAnalyze_HelpShort[];
34 extern const char kAnalyze_Help[];
35 int RunAnalyze(const std::vector<std::string>& args);
36
32 extern const char kArgs[]; 37 extern const char kArgs[];
33 extern const char kArgs_HelpShort[]; 38 extern const char kArgs_HelpShort[];
34 extern const char kArgs_Help[]; 39 extern const char kArgs_Help[];
35 int RunArgs(const std::vector<std::string>& args); 40 int RunArgs(const std::vector<std::string>& args);
36 41
37 extern const char kCheck[]; 42 extern const char kCheck[];
38 extern const char kCheck_HelpShort[]; 43 extern const char kCheck_HelpShort[];
39 extern const char kCheck_Help[]; 44 extern const char kCheck_Help[];
40 int RunCheck(const std::vector<std::string>& args); 45 int RunCheck(const std::vector<std::string>& args);
41 46
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 const std::set<const Target*>& targets); 192 const std::set<const Target*>& targets);
188 void FilterAndPrintTargetSet(const std::set<const Target*>& targets, 193 void FilterAndPrintTargetSet(const std::set<const Target*>& targets,
189 base::ListValue* out); 194 base::ListValue* out);
190 195
191 // Extra help from command_check.cc 196 // Extra help from command_check.cc
192 extern const char kNoGnCheck_Help[]; 197 extern const char kNoGnCheck_Help[];
193 198
194 } // namespace commands 199 } // namespace commands
195 200
196 #endif // TOOLS_GN_COMMANDS_H_ 201 #endif // TOOLS_GN_COMMANDS_H_
OLDNEW
« no previous file with comments | « tools/gn/command_analyze.cc ('k') | tools/gn/commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698