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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user