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