| 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 extern const char kArgs[]; | 25 extern const char kArgs[]; |
| 26 extern const char kArgs_HelpShort[]; | 26 extern const char kArgs_HelpShort[]; |
| 27 extern const char kArgs_Help[]; | 27 extern const char kArgs_Help[]; |
| 28 int RunArgs(const std::vector<std::string>& args); | 28 int RunArgs(const std::vector<std::string>& args); |
| 29 | 29 |
| 30 extern const char kCheck[]; | 30 extern const char kCheck[]; |
| 31 extern const char kCheck_HelpShort[]; | 31 extern const char kCheck_HelpShort[]; |
| 32 extern const char kCheck_Help[]; | 32 extern const char kCheck_Help[]; |
| 33 int RunCheck(const std::vector<std::string>& args); | 33 int RunCheck(const std::vector<std::string>& args); |
| 34 | 34 |
| 35 extern const char kClean[]; |
| 36 extern const char kClean_HelpShort[]; |
| 37 extern const char kClean_Help[]; |
| 38 int RunClean(const std::vector<std::string>& args); |
| 39 |
| 35 extern const char kDesc[]; | 40 extern const char kDesc[]; |
| 36 extern const char kDesc_HelpShort[]; | 41 extern const char kDesc_HelpShort[]; |
| 37 extern const char kDesc_Help[]; | 42 extern const char kDesc_Help[]; |
| 38 int RunDesc(const std::vector<std::string>& args); | 43 int RunDesc(const std::vector<std::string>& args); |
| 39 | 44 |
| 40 extern const char kGen[]; | 45 extern const char kGen[]; |
| 41 extern const char kGen_HelpShort[]; | 46 extern const char kGen_HelpShort[]; |
| 42 extern const char kGen_Help[]; | 47 extern const char kGen_Help[]; |
| 43 int RunGen(const std::vector<std::string>& args); | 48 int RunGen(const std::vector<std::string>& args); |
| 44 | 49 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Filters the given list of targets by the given pattern list. This is a | 122 // Filters the given list of targets by the given pattern list. This is a |
| 118 // helper function for setting up a call to CheckPublicHeaders based on a check | 123 // helper function for setting up a call to CheckPublicHeaders based on a check |
| 119 // filter. | 124 // filter. |
| 120 void FilterTargetsByPatterns(const std::vector<const Target*>& input, | 125 void FilterTargetsByPatterns(const std::vector<const Target*>& input, |
| 121 const std::vector<LabelPattern>& filter, | 126 const std::vector<LabelPattern>& filter, |
| 122 std::vector<const Target*>* output); | 127 std::vector<const Target*>* output); |
| 123 | 128 |
| 124 } // namespace commands | 129 } // namespace commands |
| 125 | 130 |
| 126 #endif // TOOLS_GN_COMMANDS_H_ | 131 #endif // TOOLS_GN_COMMANDS_H_ |
| OLD | NEW |