[clang] [HLSL][RootSignature] Define and integrate rootsig clang attr and decl (PR #137690)

Finn Plummer via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 28 13:19:53 PDT 2025


================
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - %s -verify
+
+// Attr test
+
+[RootSignature()] // expected-error {{expected string literal as argument of 'RootSignature' attribute}}
+void bad_root_signature_0() {}
+
+// expected-error at +2 {{expected ')'}}
+// expected-note at +1 {{to match this '('}}
+[RootSignature("", "")]
----------------
inbelic wrote:

The location here points to the comma

https://github.com/llvm/llvm-project/pull/137690


More information about the cfe-commits mailing list