Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 28, 2025

Clang’s textDocument/symbolInfo request does not return a kind field. We were thus filtering all symbols from clang, which left us with no USR that could be used for the type hierarchy.

Clang’s `textDocument/symbolInfo` request does not return a `kind` field. We were thus filtering all symbols from clang, which left us with no USR that could be used for the type hierarchy.
@ahoppen
Copy link
Member Author

ahoppen commented Aug 28, 2025

@swift-ci Please test

Comment on lines +2470 to +2471
// Consider a symbol a class if its kind is `nil`, eg. for a symbol returned by clang's SymbolInfo, which
// doesn't support the `kind` field.
Copy link
Contributor

@bnbarham bnbarham Aug 28, 2025

Choose a reason for hiding this comment

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

Should it 🤔? This is our extension isn't it? I'm fine with this change regardless, since we still filter from the index.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, would probably be nice if we added the kind field to the clangd request.

@ahoppen ahoppen merged commit ef11788 into swiftlang:main Aug 30, 2025
3 checks passed
@ahoppen ahoppen deleted the clang-type-hierarchy branch August 30, 2025 09:32
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