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

Split pointer declarators from the rest #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Split pointer declarators from the rest #45

wants to merge 1 commit into from

Conversation

vickenty
Copy link
Owner

Fixes #44

@@ -1122,6 +1130,9 @@ pub fn visit_declarator<'ast, V: Visit<'ast> + ?Sized>(
_span: &'ast Span,
) {
visitor.visit_declarator_kind(&declarator.kind.node, &declarator.kind.span);
for pointer in &declarator.pointer {
Copy link

@imihajlow imihajlow Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it makes sense here to visit pointer declarators in reverse order? This way all declarators can be applied to the base type consistently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DerivedDeclarator inconsistency
2 participants