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

function pointer argument name removed #182

Closed
IOBYTE opened this issue May 10, 2019 · 1 comment
Closed

function pointer argument name removed #182

IOBYTE opened this issue May 10, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@IOBYTE
Copy link

IOBYTE commented May 10, 2019

This code:

typedef int my_cb(int dst, int len, int dat);
int f(my_cb cb, void *dat);

int f(my_cb cb, void *dat)
{
	return 0;
}

produces this output:

typedef int my_cb(int dst, int len, int dat);
int f(my_cb *, void * dat);


int f(my_cb *, void * dat)
{
  return 0;
}

The argument name is removed on the first argument cb.

@IOBYTE IOBYTE changed the title function pointer argument mane removed function pointer argument name removed May 10, 2019
andreasfertig added a commit that referenced this issue May 10, 2019
Some internals have been tweaked such that the matchers are adjusted now
to match and rewrite entire classes. It also supports generic lambdas.
andreasfertig added a commit that referenced this issue May 10, 2019
Some internals have been tweaked such that the matchers are adjusted now
to match and rewrite entire classes. It also supports generic lambdas.
andreasfertig added a commit that referenced this issue May 10, 2019
Some internals have been tweaked such that the matchers are adjusted now
to match and rewrite entire classes. It also supports generic lambdas.
andreasfertig added a commit that referenced this issue May 10, 2019
Some internals have been tweaked such that the matchers are adjusted now
to match and rewrite entire classes. It also supports generic lambdas.
andreasfertig added a commit that referenced this issue May 10, 2019
Some internals have been tweaked such that the matchers are adjusted now
to match and rewrite entire classes. It also supports generic lambdas.
andreasfertig added a commit that referenced this issue May 10, 2019
Some internals have been tweaked such that the matchers are adjusted now
to match and rewrite entire classes. It also supports generic lambdas.
andreasfertig added a commit that referenced this issue May 10, 2019
Some internals have been tweaked such that the matchers are adjusted now
to match and rewrite entire classes. It also supports generic lambdas.
andreasfertig added a commit that referenced this issue May 10, 2019
Some internals have been tweaked such that the matchers are adjusted now
to match and rewrite entire classes. It also supports generic lambdas.
andreasfertig added a commit that referenced this issue May 10, 2019
Major change: Rewrite more elements (fixed #127 and #182).
@andreasfertig
Copy link
Owner

Hello @IOBYTE,

thanks for reporting that. It has been fixed with the last commit.

Andreas

@andreasfertig andreasfertig added the bug Something isn't working label Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants