Added storing list of using namespace directives for each namespace

This commit is contained in:
Bartek Kryza
2022-03-14 23:23:48 +01:00
parent 1d0bef2085
commit c0a759c2c4
5 changed files with 52 additions and 1 deletions

View File

@@ -185,6 +185,11 @@ bool operator==(const namespace_ &left, const namespace_ &right)
return left.namespace_path_ == right.namespace_path_;
}
bool operator<(const namespace_ &left, const namespace_ &right)
{
return std::hash<namespace_>{}(left) < std::hash<namespace_>{}(right);
}
std::string namespace_::name() const
{
assert(size() > 0);