Lines Matching refs:FunctionDecl
52 static QualType lookupPromiseType(Sema &S, const FunctionDecl *FD,
196 auto *FD = dyn_cast<FunctionDecl>(S.CurContext);
300 auto *BuiltInDecl = R.getAsSingle<FunctionDecl>();
489 assert(isa<FunctionDecl>(CurContext) && "not in a function scope");
490 auto *FD = cast<FunctionDecl>(CurContext);
593 assert(isa<FunctionDecl>(S.CurContext) && "not in a function scope");
623 if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
636 S.Diag(cast<FunctionDecl>(S.CurContext)->getLocation(),
702 auto *Fn = cast<FunctionDecl>(CurContext);
1021 static FunctionDecl *findDeleteForPromise(Sema &S, SourceLocation Loc,
1023 FunctionDecl *OperatorDelete = nullptr;
1046 void Sema::CheckCompletedCoroutineBody(FunctionDecl *FD, Stmt *&Body) {
1081 CoroutineStmtBuilder::CoroutineStmtBuilder(Sema &S, FunctionDecl &FD,
1224 FunctionDecl *OperatorNew = nullptr;
1225 FunctionDecl *OperatorDelete = nullptr;
1226 FunctionDecl *UnusedResult = nullptr;
1614 assert(isa<FunctionDecl>(CurContext) && "not in a function scope");
1615 auto *FD = cast<FunctionDecl>(CurContext);