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