[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
Wed Aug 5 03:04:32 PDT 2026
================
@@ -5311,6 +5311,30 @@ TEST(Hover, FunctionParameters) {
}
}
+TEST(Hover, HLSLRegisterAttributeRange) {
+ Annotations T(R"hlsl(
+ Texture2D tex : [[^register]]([[^t1]]);
+ )hlsl");
+
+ TestTU TU = TestTU::withCode(T.code());
+ TU.Filename = "TestTU.hlsl";
----------------
mafeguimaraes wrote:
Good idea. I'll rebase this branch on top of #212741 once it gets merged and reuse the helper then.
https://github.com/llvm/llvm-project/pull/212881
More information about the cfe-commits
mailing list