def get_cleared_flags(cp):
    cpv = _get_cpv(cp)
    final_use, use_expand_hidden, usemasked, useforced = get_all_cpv_use(cpv)
    inst_flags = filter_flags(get_installed_use(cpv), use_expand_hidden,
                                usemasked, useforced)
    final_flags = filter_flags(final_use, use_expand_hidden,
                                usemasked, useforced)
    return inst_flags, final_flags
.. versionadded:: 2015.8.0
dataset/ETHPy150Open saltstack/salt/salt/modules/portage_config.py/get_cleared_flags