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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 bool ResolveTargetsFromCommandLinePattern( | 92 bool ResolveTargetsFromCommandLinePattern( |
93 Setup* setup, | 93 Setup* setup, |
94 const std::string& label_pattern, | 94 const std::string& label_pattern, |
95 bool all_toolchains, | 95 bool all_toolchains, |
96 std::vector<const Target*>* matches); | 96 std::vector<const Target*>* matches); |
97 | 97 |
98 // Runs the header checker. All targets in the build should be given in | 98 // Runs the header checker. All targets in the build should be given in |
99 // all_targets, and the specific targets to check should be in to_check. If | 99 // all_targets, and the specific targets to check should be in to_check. If |
100 // to_check is empty, all targets will be checked. | 100 // to_check is empty, all targets will be checked. |
101 // | 101 // |
| 102 // force_check, if true, will override targets opting out of header checking |
| 103 // with "check_includes = false" and will check them anyway. |
| 104 // |
102 // On success, returns true. If the check fails, the error(s) will be printed | 105 // On success, returns true. If the check fails, the error(s) will be printed |
103 // to stdout and false will be returned. | 106 // to stdout and false will be returned. |
104 bool CheckPublicHeaders(const BuildSettings* build_settings, | 107 bool CheckPublicHeaders(const BuildSettings* build_settings, |
105 const std::vector<const Target*>& all_targets, | 108 const std::vector<const Target*>& all_targets, |
106 const std::vector<const Target*>& to_check); | 109 const std::vector<const Target*>& to_check, |
| 110 bool force_check); |
107 | 111 |
108 } // namespace commands | 112 } // namespace commands |
109 | 113 |
110 #endif // TOOLS_GN_COMMANDS_H_ | 114 #endif // TOOLS_GN_COMMANDS_H_ |
OLD | NEW |