OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |