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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 #include "tools/gn/pointer_set.h" |
14 #include "tools/gn/target.h" | 15 #include "tools/gn/target.h" |
15 #include "tools/gn/unique_vector.h" | 16 #include "tools/gn/unique_vector.h" |
16 | 17 |
17 class BuildSettings; | 18 class BuildSettings; |
18 class Config; | 19 class Config; |
19 class LabelPattern; | 20 class LabelPattern; |
20 class Setup; | 21 class Setup; |
21 class SourceFile; | 22 class SourceFile; |
22 class Target; | 23 class Target; |
23 class Toolchain; | 24 class Toolchain; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 " ignored.\n" | 168 " ignored.\n" |
168 | 169 |
169 // Applies any testonly and type filters specified on the command line, | 170 // Applies any testonly and type filters specified on the command line, |
170 // and prints the targets as specified by the --as command line flag. | 171 // and prints the targets as specified by the --as command line flag. |
171 // | 172 // |
172 // If indent is true, the results will be indented two spaces. | 173 // If indent is true, the results will be indented two spaces. |
173 // | 174 // |
174 // The vector will be modified so that only the printed targets will remain. | 175 // The vector will be modified so that only the printed targets will remain. |
175 void FilterAndPrintTargets(bool indent, std::vector<const Target*>* targets); | 176 void FilterAndPrintTargets(bool indent, std::vector<const Target*>* targets); |
176 void FilterAndPrintTargetSet(bool indent, | 177 void FilterAndPrintTargetSet(bool indent, |
177 const std::set<const Target*>& targets); | 178 const PointerSet<const Target>& targets); |
178 | 179 |
179 } // namespace commands | 180 } // namespace commands |
180 | 181 |
181 #endif // TOOLS_GN_COMMANDS_H_ | 182 #endif // TOOLS_GN_COMMANDS_H_ |
OLD | NEW |