Skip to content

Conversation

zrlk
Copy link
Contributor

@zrlk zrlk commented Mar 23, 2024

Also remove a bizarre constructor from NodeId.

Also remove a bizarre constructor from NodeId.
@zrlk zrlk requested a review from shahms March 23, 2024 05:23
}
// Note that `iter` may be invalidated if a recursive call causes TypeNodes to
// rehash. We'll still insert an empty set out of superstition about recursive
// types.
Copy link
Contributor

Choose a reason for hiding this comment

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

Just use find() + insert() like BuildNodeIdForDecl does for the same reasons?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd be very surprised if there were a cycle in decls (there is a self-loop in BuildNodeIdForDecl), less so if somehow there's one in types.

@zrlk zrlk merged commit 6fce79d into kythe:master Mar 23, 2024
@zrlk zrlk deleted the cxx-type-map-absl branch March 23, 2024 22:33
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.

2 participants