15 #ifndef NINJA_CLEAN_H_
16 #define NINJA_CLEAN_H_
42 int CleanTarget(
Node* target);
45 int CleanTarget(
const char* target);
48 int CleanTargets(
int target_count,
char* targets[]);
53 int CleanAll(
bool generator =
false);
57 int CleanRule(
const Rule* rule);
60 int CleanRule(
const char* rule);
63 int CleanRules(
int rule_count,
char* rules[]);
67 return cleaned_files_count_;
79 int RemoveFile(
const string& path);
81 bool FileExists(
const string& path);
82 void Report(
const string& path);
85 void Remove(
const string& path);
87 bool IsAlreadyRemoved(
const string& path);
89 void RemoveEdgeFiles(
Edge* edge);
92 void DoCleanTarget(
Node* target);
95 void DoCleanRule(
const Rule* rule);
107 #endif // NINJA_CLEAN_H_
const BuildConfig & config_
Information about a node in the dependency graph: the file, whether it's dirty, mtime, etc.
Interface for accessing the disk.
An edge in the dependency graph; links between Nodes using Rules.
DiskInterface * disk_interface_
An invokable build command and associated metadata (description, etc.).
Options (e.g. verbosity, parallelism) passed to a build.
Global state (file status, loaded rules) for a single run.
int cleaned_files_count() const