Skip to content

clang::Type::arg_types should return Option<Vec<Type>> #140

@fitzgen

Description

@fitzgen

arg_types makes FFI calls that are only valid if this type is a function type. We should check whether or not this type is a function type, and if it is not, then return None. If it is, we should proceed with the FFI calls and return Some.

This will make it so that every caller doesn't have to remember to do the check, which removes a foot gun if they forget.

I can mentor whoever would like to work on 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