Clang import; getType()
This commit is contained in:
parent
aa090a8b45
commit
ba244be2d6
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue