Skip to content

clang::Cursor::referenced should return Option<clang::Cursor> #124

@fitzgen

Description

@fitzgen

It does not check if the resulting cursor is_valid(), requiring callers to do it, which is a foot gun. Instead, it should check resulting_cursor.is_valid() and return either None or Some. We will also need to fix callers.

I can mentor anyone who wants to pick up this bug.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions