diff options
author | Evan Martin <martine@danga.com> | 2012-10-29 16:53:30 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-10-31 19:34:07 (GMT) |
commit | 93e509469953a90f31afc838536b82568da397b2 (patch) | |
tree | d009d6ce241e8b048648e74b19b383a9ad86bb12 /src/clean.h | |
parent | 599d716fc78441436aebcde948886791d1988651 (diff) | |
download | Ninja-93e509469953a90f31afc838536b82568da397b2.zip Ninja-93e509469953a90f31afc838536b82568da397b2.tar.gz Ninja-93e509469953a90f31afc838536b82568da397b2.tar.bz2 |
refactor repeated code in cleaner
Diffstat (limited to 'src/clean.h')
-rw-r--r-- | src/clean.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clean.h b/src/clean.h index 8359901..5a23283 100644 --- a/src/clean.h +++ b/src/clean.h @@ -81,10 +81,14 @@ class Cleaner { /// @returns whether the file @a path exists. bool FileExists(const string& path); void Report(const string& path); + /// Remove the given @a path file only if it has not been already removed. void Remove(const string& path); /// @return whether the given @a path has already been removed. bool IsAlreadyRemoved(const string& path); + /// Remove the depfile and rspfile for an Edge. + void RemoveEdgeFiles(Edge* edge); + /// Helper recursive method for CleanTarget(). void DoCleanTarget(Node* target); void PrintHeader(); |