25 const MatchFinder::MatchResult &Result) {
26 const auto *Function = Result.Nodes.getNodeAs<FunctionDecl>(
"fnt");
27 for (
const ParmVarDecl *Param : Function->parameters()) {
28 if (!Param->getType().getCanonicalType()->isReferenceType())
31 diag(Param->getBeginLoc(),
"coroutine parameters should not be references");