[llvm-branch-commits] [clang] [HLSL][RootSignature] Audit `RootSignatureParser` diagnostic production (PR #147800)
Deric C. via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jul 11 13:32:35 PDT 2025
================
@@ -17,24 +17,89 @@ void bad_root_signature_2() {}
[RootSignature(""), RootSignature("")] // expected-warning {{attribute 'RootSignature' is already applied}}
void bad_root_signature_3() {}
-[RootSignature("DescriptorTable(), invalid")] // expected-error {{expected end of stream to denote end of parameters, or, another valid parameter of RootSignature}}
+// expected-error at +1 {{invalid parameter of RootSignature}}
+[RootSignature("DescriptorTable(), invalid")]
void bad_root_signature_4() {}
-// expected-error at +1 {{expected ')' to denote end of parameters, or, another valid parameter of RootConstants}}
-[RootSignature("RootConstants(b0, num32BitConstants = 1, invalid)")]
+// expected-error at +1 {{expected ')' or ','}}
----------------
Icohedron wrote:
nit: Perhaps check for column number to see where a ')' or ',' is expected?
https://github.com/llvm/llvm-project/pull/147800
More information about the llvm-branch-commits
mailing list