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

Fix function parameter types #157

Closed
wants to merge 3 commits into from

Conversation

sdkrystian
Copy link
Member

Closes #142

@sdkrystian
Copy link
Member Author

Tests coming shortly...

@sdkrystian sdkrystian force-pushed the func-type branch 2 times, most recently from 59ee8be to d3162bc Compare May 4, 2023 18:46
// function parameters as a group from the
// FunctionDecl instead of visiting ParmVarDecl.
Assert(shouldTraversePostOrder() &&
"expected post-order traversal");
Copy link
Member

Choose a reason for hiding this comment

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

oh man I hate this "text" in the assert

Copy link
Member Author

@sdkrystian sdkrystian May 4, 2023

Choose a reason for hiding this comment

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

How about "modifying a ParamVarDecl here requires post-order traversal"?

Copy link
Member

Choose a reason for hiding this comment

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

I dont want any text at all, it is gratuituous because the assert will probably never go off so we are paying for a string for nothing. I edited the code already to remove the text and just leave a comment.

@sdkrystian sdkrystian deleted the func-type branch May 16, 2023 21:24
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.

Ambiguity resolution for names should account for type decay
2 participants