[PATCH] D131625: [HLSL] Entry functions require param annotation
Xiang Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 10 17:40:34 PDT 2022
python3kgae added inline comments.
================
Comment at: clang/lib/Sema/SemaDecl.cpp:11875
+ for (const auto Param : FD->parameters()) {
+ if (!Param->hasAttr<HLSLAnnotationAttr>()) {
+ Diag(Param->getLocation(), diag::err_hlsl_missing_parameter_annotation) << Param;
----------------
When param type is struct, it is OK not to have HLSL semantic as long as all fields in the struct have HLSL semantic.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131625/new/
https://reviews.llvm.org/D131625
More information about the cfe-commits
mailing list