logic: clearing unused includes

* refresh also clears referenced (included or imported) files if they are not part of the project's source files and are not referenced by any other unchanged file anymore.
This commit is contained in:
malte_langkabel
2017-01-23 10:36:42 +01:00
parent 0e5f65b475
commit 6ea248b500
6 changed files with 192 additions and 89 deletions
+12
View File
@@ -26,6 +26,9 @@ namespace utility
template<typename T>
std::vector<T> concat(const std::vector<T>& a, const std::vector<T>& b);
template<typename T>
std::set<T> concat(const std::set<T>& a, const std::set<T>& b);
template<typename T>
void append(std::vector<T>& a, const std::vector<T>& b);
@@ -87,6 +90,15 @@ std::vector<T> utility::concat(const std::vector<T>& a, const std::vector<T>& b)
return r;
}
template<typename T>
std::set<T> utility::concat(const std::set<T>& a, const std::set<T>& b)
{
std::set<T> r;
append(r, a);
append(r, b);
return r;
}
template<typename T>
void utility::append(std::vector<T>& a, const std::vector<T>& b)
{