[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:56:31 PDT 2026
================
@@ -185,6 +185,7 @@ void Parser::ParseHLSLAnnotations(ParsedAttributes &Attrs,
if (EndLoc)
*EndLoc = Tok.getLocation();
+ SourceLocation AttrEndLoc = Loc;
----------------
mafeguimaraes wrote:
I considered reusing `EndLoc`, but I kept it separate because the two locations have different meanings. `EndLoc` refers to the end of the identifier, while `AttrEndLoc` refers to the end of the full `register(...)` attribute.
https://github.com/llvm/llvm-project/pull/212881
More information about the cfe-commits
mailing list