import glob


def _get_header_files(include_dirs):
    """Return a list of all extra headers to include in checks."""

    headers = []
    for path in include_dirs:
        headers += glob.glob(path + "/**/*.h", recursive=True)
        headers += glob.glob(path + "/**/*.hh", recursive=True)
        headers += glob.glob(path + "/**/*.hpp", recursive=True)
        headers += glob.glob(path + "/**/*.ipp", recursive=True)

    return headers