@staticmethod
def _get_scanner_cflags(cflags):
    """g-ir-scanner only accepts -I/-D/-U; must ignore all other flags"""
    for f in cflags:
        if f.startswith(('-D', '-U', '-I')):
            yield f
