def __remove_alias(type_):
if isinstance(type_, cpptypes.declarated_t) andisinstance(type_.declaration, typedef.typedef_t):<EOL><INDENT>return __remove_alias(type_.declaration.decl_type)<EOL><DEDENT>if isinstance(type_, cpptypes.compound_t):<EOL><INDENT>type_.base = __remove_alias(type_.base)<EOL>return type_<EOL><DEDENT>return type_<EOL>
Implementation detail.

Args:
    type_ (type_t): type

Returns:
    type_t: the type associated to the inputted type