Clang import; getType()

This commit is contained in:
Daniel Marjamäki 2020-01-11 16:49:30 +01:00
parent aa090a8b45
commit ba244be2d6
1 changed files with 10 additions and 0 deletions

View File

@ -267,6 +267,16 @@ std::string clangimport::AstNode::getType() const
type[pos] = '\'';
type.erase(pos+1);
}
if (type.find(" *(") != std::string::npos) {
std::string::size_type pos = type.find(" *(") + 2;
type[pos] = '\'';
type.erase(pos+1);
}
if (type.find(" &(") != std::string::npos) {
std::string::size_type pos = type.find(" &(") + 2;
type[pos] = '\'';
type.erase(pos+1);
}
return unquote(type);
}