[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
================
@@ -949,6 +950,23 @@ void SemaHLSL::emitLogicalOperatorFixIt(Expr *LHS, Expr *RHS,
<< NewFnName << FixItHint::CreateReplacement(FullRange, OS.str());
}
+void SemaHLSL::handleRootSignatureAttr(Decl *D, const ParsedAttr &AL) {
+ if (AL.getNumArgs() != 1) {
+ Diag(AL.getLoc(), diag::err_attribute_wrong_number_arguments) << AL << 1;
+ return;
+ }
+
----------------
inbelic wrote:
Should also validate that we haven't already received a root signature attr
https://github.com/llvm/llvm-project/pull/137690
More information about the cfe-commits
mailing list