Fixed class visitor continuation after inner class
This commit is contained in:
@@ -186,6 +186,7 @@ static enum CXChildVisitResult class_visitor(
|
||||
|
||||
ctx->ctx->d.classes.emplace_back(std::move(c));
|
||||
});
|
||||
ret = CXChildVisit_Continue;
|
||||
break;
|
||||
case CXCursor_EnumDecl:
|
||||
if (!config.should_include(cursor.fully_qualified())) {
|
||||
|
||||
@@ -50,7 +50,11 @@ std::vector<std::string> split(std::string str, std::string delimiter)
|
||||
std::string ns_relative(
|
||||
const std::vector<std::string> &namespaces, const std::string &n)
|
||||
{
|
||||
for (const auto &ns : namespaces) {
|
||||
std::vector<std::string> namespaces_sorted{namespaces};
|
||||
|
||||
std::sort(namespaces_sorted.rbegin(), namespaces_sorted.rend());
|
||||
|
||||
for (const auto &ns : namespaces_sorted) {
|
||||
if (ns.empty())
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user