Prevent infinite recursion during alias resolution #18
This commit is contained in:
@@ -88,6 +88,10 @@ std::string ns(const cppast::cpp_entity &e)
|
||||
}
|
||||
it = it.value().parent();
|
||||
}
|
||||
|
||||
if (res.empty())
|
||||
return "";
|
||||
|
||||
std::reverse(res.begin(), res.end());
|
||||
|
||||
return fmt::format("{}", fmt::join(res, "::"));
|
||||
|
||||
Reference in New Issue
Block a user