Fix namespace handling of template type parameters

This commit is contained in:
Bartek Kryza
2022-05-08 23:23:55 +02:00
parent 7b98cfb4ba
commit 0f72dbdcae

View File

@@ -181,6 +181,9 @@ std::string ns(const cppast::cpp_type &t, const cppast::cpp_entity_index &idx)
return fmt::format(
"{}", fmt::join(ns_toks.begin(), ns_toks.end(), "::"));
}
else if (canon.find("type-parameter-") == 0) {
return "";
}
else {
// This is a bug/feature in libclang, where canonical representation
// of a template type with incomplete specialization doesn't have a