def _transform_invalid_identifier(invalid_identifier: str) -> str:
    """Applies a transformation to an invalid C++ identifier to make it valid.

    Currently, this simply appends an underscore. This addresses the vast
    majority of realistic cases, but there are some caveats; see
    `fix_cc_identifier` function documentation for details.
    """
    return f"{invalid_identifier}_"