From 0f72dbdcae099f3c5ce5a44dae3e7127237f0e97 Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Sun, 8 May 2022 23:23:55 +0200 Subject: [PATCH] Fix namespace handling of template type parameters --- src/cx/util.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cx/util.cc b/src/cx/util.cc index c589f0e7..08c99d28 100644 --- a/src/cx/util.cc +++ b/src/cx/util.cc @@ -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