Skip to content

Split pointer declarators from the rest#45

Open
vickenty wants to merge 1 commit intomasterfrom
ptr
Open

Split pointer declarators from the rest#45
vickenty wants to merge 1 commit intomasterfrom
ptr

Conversation

@vickenty
Copy link
Copy Markdown
Owner

Fixes #44

Comment thread src/visit.rs
_span: &'ast Span,
) {
visitor.visit_declarator_kind(&declarator.kind.node, &declarator.kind.span);
for pointer in &declarator.pointer {
Copy link
Copy Markdown

@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.

PartyWumpus added a commit to PartyWumpus/lang-c that referenced this pull request Nov 25, 2025
PartyWumpus added a commit to PartyWumpus/lang-c that referenced this pull request Nov 25, 2025
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