Open
Description
At the moment, when we report diagnostics from SemaHLSL
we only provide the source location of the attr. This allows for significantly less helpful diagnostics (for eg. reporting resource range overlaps).
This issue tracks implementing a way to retain the source location of a root element when it is parsed, so that we can output its SourceLocation
in the diagnostics produce during semantic analysis.
Potential solutions:
- Using a
DenseMap
to point from aRootElement
to itsSourceLocation
- Creating a wrapper
clang::hlsl::RootElement
struct that wraps thellvm::hlsl::rootsig::RootElement
equivalent, that will hold all additional diagnostic data that wouldn't be available tollvm::hlsl:rootsig::RootElement
.
A potential solution should be listed as a proposed solution before it is ready for refinement.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Planning