Skip to content

[readability/casting] false positive with typedef #409

@targos

Description

@targos

In Node.js, we have this code that triggers the readability/casting error:

typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void);

https://github.com/nodejs/node/blob/6706b22e350490d3e8e697377b5f388df9305aa0/src/node_api_types.h#L8

src/node_api_types.h:8: Using deprecated casting style. Use static_cast<int32_t>(...) instead [readability/casting] [4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions