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

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

Issue 909103003: gn: Add 'clean' command. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Err instead of DeleteFile Created 5 years, 10 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_clean.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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « tools/gn/command_clean.cc ('k') | tools/gn/commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698