[clang] [clang-tools-extra] [clangd][HLSL] Fix register attribute source range for hover inside arguments (PR #212881)
Maria Fernanda GuimarĂ£es via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 3 11:55:37 PDT 2026
================
@@ -185,6 +185,7 @@ void Parser::ParseHLSLAnnotations(ParsedAttributes &Attrs,
if (EndLoc)
----------------
mafeguimaraes wrote:
Good point, added parser-level coverage: a case in clang/test/AST/HLSL/resource_binding_attr.hlsl that checks HLSLResourceBindingAttr's SourceRange via -ast-dump/FileCheck directly, confirming it now spans the full `register(...)` construct instead of being zero-width.
https://github.com/llvm/llvm-project/pull/212881
More information about the cfe-commits
mailing list