15 #ifndef NINJA_CLEAN_H_ 16 #define NINJA_CLEAN_H_ 49 int CleanAll(
bool generator =
false);
82 void Report(
const std::string& path);
85 void Remove(
const std::string& path);
111 #endif // NINJA_CLEAN_H_
const BuildConfig & config_
ExternalStringHashMap< LogEntry * >::Type Entries
int CleanTargets(int target_count, char *targets[])
Clean the given target targets.
std::set< std::string > removed_
Information about a node in the dependency graph: the file, whether it's dirty, mtime, etc.
DyndepLoader dyndep_loader_
Interface for accessing the disk.
An edge in the dependency graph; links between Nodes using Rules.
std::set< Node * > cleaned_
DiskInterface * disk_interface_
Cleaner(State *state, const BuildConfig &config, DiskInterface *disk_interface)
Build a cleaner object with the given disk_interface.
int RemoveFile(const std::string &path)
Remove the file path.
int CleanAll(bool generator=false)
Clean all built files, except for files created by generator rules.
void DoCleanTarget(Node *target)
Helper recursive method for CleanTarget().
int CleanRule(const Rule *rule)
Clean all the file built with the given rule rule.
int cleaned_files_count() const
An invokable build command and associated metadata (description, etc.).
int CleanRules(int rule_count, char *rules[])
Clean the file produced by the given rules.
void LoadDyndeps()
Load dependencies from dyndep bindings.
bool IsAlreadyRemoved(const std::string &path)
DyndepLoader loads dynamically discovered dependencies, as referenced via the "dyndep" attribute in b...
int CleanDead(const BuildLog::Entries &entries)
Clean the files produced by previous builds that are no longer in the manifest.
void Remove(const std::string &path)
Remove the given path file only if it has not been already removed.
void DoCleanRule(const Rule *rule)
void RemoveEdgeFiles(Edge *edge)
Remove the depfile and rspfile for an Edge.
Options (e.g. verbosity, parallelism) passed to a build.
Global state (file status) for a single run.
bool FileExists(const std::string &path)
void Report(const std::string &path)
int CleanTarget(Node *target)
Clean the given target and all the file built for it.