diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-07-18 12:37:02 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-07-24 07:43:27 +0900 |
commit | 998ccf798382a64d365b73a7f96884a14fc7e21a (patch) | |
tree | 409211183915524c7cd17b80a52c5509348baba8 /file_cache.cc | |
parent | 9c2f98c2ea4491d564ca35cd0fe895264d5597d8 (diff) | |
download | kati-998ccf798382a64d365b73a7f96884a14fc7e21a.tar.gz |
[C++] Add a rule for ninja file regeneration
Diffstat (limited to 'file_cache.cc')
-rw-r--r-- | file_cache.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/file_cache.cc b/file_cache.cc index b26d054..6a05550 100644 --- a/file_cache.cc +++ b/file_cache.cc @@ -53,6 +53,11 @@ class MakefileCacheManagerImpl : public MakefileCacheManager { return result; } + virtual void GetAllFilenames(unordered_set<string>* out) override { + for (const auto& p : cache_) + out->insert(p.first); + } + private: unordered_map<string, Makefile*> cache_; }; |