Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jacob-carlborg opened this issue Jul 3, 2017 · 0 comments
Labels

Comments

@jacob-carlborg
Copy link
Owner

jacob-carlborg commented Jul 3, 2017

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.

ciechowoj added a commit to ciechowoj/dstep that referenced this issue Aug 26, 2017
ciechowoj added a commit to ciechowoj/dstep that referenced this issue Aug 26, 2017
ciechowoj added a commit to ciechowoj/dstep that referenced this issue Sep 3, 2017
ciechowoj added a commit to ciechowoj/dstep that referenced this issue Sep 4, 2017
ciechowoj added a commit to ciechowoj/dstep that referenced this issue Sep 16, 2017
ciechowoj added a commit to ciechowoj/dstep that referenced this issue Sep 16, 2017
ciechowoj added a commit to ciechowoj/dstep that referenced this issue Oct 2, 2017
jacob-carlborg added a commit that referenced this issue Oct 4, 2017
Fix #160: Translating typedef of function pointer doesn't take line l…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant