Added typedef and typealias test
This commit is contained in:
@@ -211,6 +211,11 @@ public:
|
||||
return clang_getCXXAccessSpecifier(m_cursor);
|
||||
}
|
||||
|
||||
cx::type underlying_type() const
|
||||
{
|
||||
return clang_getTypedefDeclUnderlyingType(m_cursor);
|
||||
}
|
||||
|
||||
int template_argument_count() const
|
||||
{
|
||||
return clang_Cursor_getNumTemplateArguments(m_cursor);
|
||||
|
||||
@@ -599,8 +599,11 @@ enum CXChildVisitResult process_field(
|
||||
|
||||
m.is_static = cursor.is_static();
|
||||
|
||||
spdlog::debug("Adding member {} {}::{} {}, {}, {}", m.type, parent->name,
|
||||
cursor.spelling(), t, tr, tr.type_declaration());
|
||||
spdlog::debug(
|
||||
"Adding member {} {}::{} "
|
||||
"\n\tCURSOR={}\n\tTYPE={}\n\tTYPEDECL={}\n\tUNDERLYINGTYPE={}",
|
||||
m.type, parent->name, cursor.spelling(), cursor, t,
|
||||
tr.type_declaration(), tr.type_declaration().underlying_type());
|
||||
|
||||
if (tr.is_unexposed()) {
|
||||
added_relation_to_instantiation =
|
||||
|
||||
@@ -91,8 +91,8 @@ std::string ns_relative(
|
||||
std::string unqualify(const std::string &s)
|
||||
{
|
||||
auto toks = clanguml::util::split(s, " ");
|
||||
const std::vector<std::string> qualifiers = {
|
||||
"static", "const", "volatile", "register", "mutable", "struct", "enum"};
|
||||
const std::vector<std::string> qualifiers = {"static", "const", "volatile",
|
||||
"register", "constexpr", "mutable", "struct", "enum"};
|
||||
|
||||
toks.erase(toks.begin(),
|
||||
std::find_if(toks.begin(), toks.end(), [&qualifiers](const auto &t) {
|
||||
|
||||
Reference in New Issue
Block a user