def clean_ret_type(ret_type):
    """Clean the erraneous parsed return type."""
    ret_type = get_printable(ret_type).strip()
    if ret_type == 'LRESULT LRESULT':
        ret_type = 'LRESULT'
    for bad in [
            'DECLSPEC_NORETURN', 'NTSYSCALLAPI', '__kernel_entry',
            '__analysis_noreturn', '_Post_equals_last_error_',
            '_Maybe_raises_SEH_exception_',
            '_CRT_STDIO_INLINE', '_ACRTIMP'
    ]:
        if bad in ret_type:
            ret_type = ret_type.replace(bad, '').strip()
            logging.debug(_('cleaned %s'), bad)
    return ret_type
def clean_ret_type ( ret_type ) : ret_type = get_printable ( ret_type ) . strip ( ) if ret_type == 'LRESULT LRESULT' : ret_type = 'LRESULT' for bad in [ 'DECLSPEC_NORETURN' , 'NTSYSCALLAPI' , '__kernel_entry' , '__analysis_noreturn' , '_Post_equals_last_error_' , '_Maybe_raises_SEH_exception_' , '_CRT_STDIO_INLINE' , '_ACRTIMP' ] : if bad in ret_type : ret_type = ret_type . replace ( bad , '' ) . strip ( ) logging . debug ( _ ( 'cleaned %s' ) , bad ) return ret_type
Clean the erraneous parsed return type.