-
Notifications
You must be signed in to change notification settings - Fork 94
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
Refactor typedtree traverse to use compiler traverse #1031
Refactor typedtree traverse to use compiler traverse #1031
Conversation
9d53add
to
bc94c52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! The code indeed looks much more maintainable.
I couldn't find new links but I noticed that this now generates more anchors (for example in structures passed as argument to functors).
Could you give me an example? In particular, is the new anchor a "local anchor", or a "global anchor"? |
By diffing the output of |
Thanks. Indeed, two anchors for the same identifier are generated... let me investigate! |
The post-processing of source info is now more careful to not add two definition at the same place. In case of "conflicts", we use the "local anchor", which is more readable, rather than the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :)
I love the new local_...
anchors! Though, the diff is now too large to be inspected, I believe the code to be correct.
While trying to add a comment as suggested in #1031 (comment), I realized that the code was not clear enough... In 48f8f06 I tried to improve that. @Julow is it clearer like that? |
Just want to check that that's not going to lead to broken links? As in, if something is linking here and we've dropped the |
No, that's not going to lead to any dead link. All source ids are stored in a |
4523140
to
fbb69e2
Compare
Signed-off-by: Paul-Elliot <[email protected]>
Signed-off-by: Paul-Elliot <[email protected]>
Signed-off-by: Paul-Elliot <[email protected]>
Signed-off-by: Paul-Elliot <[email protected]>
fbb69e2
to
78cfd57
Compare
In it goes! |
This is hopefully less maintenance, increased compatibility, shorter code, and the guaranty that we don't miss any occurrence of some deeply nested core type (for instance) for source features such as #976.