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

Variable definition of function pointer that returns a user-defined type is not treated as such #446

Open
Miniature opened this issue Oct 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Miniature
Copy link

Describe the bug
Definitions of variables containing function pointers that return a user-defined type are not treated as variable definitions, but as other code. Function pointers that return builtin types work appropriately.

Erroneous code

typedef int	t_example;

void	function2(void)
{
	int	(*builtin)(void);

	t_example (*user_defined)(void);
}

Additional infos

  • OS: macOS Catalina 10.15.7 (19H15)
  • python3 --version: Python 3.9.5
  • norminette -v: norminette 3.3.54

Additional context
This issue is similar to #443, in that it concerns lack of detection of variable definitions.

@matthieu42Network matthieu42Network added the bug Something isn't working label Oct 30, 2023
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