microsoft / DirectXShaderCompiler

This repo hosts the source for the DirectX Shader Compiler which is based on LLVM/Clang.
Other
3.11k stars 698 forks source link

IDxcCursor misses semantics #5173

Open jeremyong opened 1 year ago

jeremyong commented 1 year ago

When walking an AST for a given IDxcTranslationUnit, I noticed that the semantic annotations on struct fields, parameters, and return types appear to be missing. This information would be very useful, and I'm assuming an underlying issue is that there is no corresponding CXCursor in the underlying libclang code. Would it be possible to add support for adding semantic cursor kinds, or could I get some guidance on how I could accomplish this? Thanks!

llvm-beanz commented 1 year ago

To set expectations here, I think we're pretty unlikely to prioritize this. Our long-term goal is to move away from the IDxcCursor interface entirely in favor of LSP-based tooling provided by upstream.

We would accept patches to this area, but we're not likely to do any work here.