Skip to content

Translating typedef of function pointer doesn't take line length into consideration #160

@jacob-carlborg

Description

@jacob-carlborg

The following code:

typedef void (*CXInclusionVisitor)(CXFile included_file,
                                   CXSourceLocation* inclusion_stack,
                                   unsigned include_len,
                                   CXClientData client_data);

Is translated to:

alias CXInclusionVisitor = void function(CXFile included_file, CXSourceLocation* inclusion_stack, uint include_len, CXClientData client_data);

DStep should be able to split up the function pointer across multiple lines just as a regular function declaration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions