|
|
|
@ -27,7 +27,7 @@ std::map<boost::filesystem::path, Usages::Clang::Cache> Usages::Clang::caches; |
|
|
|
Mutex Usages::Clang::caches_mutex; |
|
|
|
Mutex Usages::Clang::caches_mutex; |
|
|
|
std::atomic<size_t> Usages::Clang::cache_in_progress_count(0); |
|
|
|
std::atomic<size_t> Usages::Clang::cache_in_progress_count(0); |
|
|
|
|
|
|
|
|
|
|
|
bool Usages::Clang::Cache::Cursor::operator==(const Cursor &o) { |
|
|
|
bool Usages::Clang::Cache::Cursor::operator==(const Cursor &o) const { |
|
|
|
for(auto &usr : usrs) { |
|
|
|
for(auto &usr : usrs) { |
|
|
|
if(clangmm::Cursor::is_similar_kind(o.kind, kind) && o.usrs.count(usr)) |
|
|
|
if(clangmm::Cursor::is_similar_kind(o.kind, kind) && o.usrs.count(usr)) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|