Skip to content

Identify nif functions checking the -nifs(…) attribute #204

@elbrujohalcon

Description

@elbrujohalcon

OTP25 introduced a new attribute to identify functions overridden by nifs: -nifs(…)..
Hank currently identifies them by their calls to erlang:nif_error/2.

Describe the solution you'd like

I would like Hank to stop inferring which functions are overridden by nifs and just use -nifs(…) to figure that out.

Describe alternatives you've considered

Hank might keep also inferring the overrides by checking erlang:nif_error/2 but I think it's better to enforce good practices and get devs to include -nifs(…) in their modules, even if they just do it to silence Hank's warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions