Lines Matching refs:FunctionDecl
440 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext);
615 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
625 const FunctionDecl *DeclToCheck;
670 if (auto *FD = dyn_cast<FunctionDecl>(ND))
709 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
773 } else if (auto *FD = dyn_cast<FunctionDecl>(VD)) {
870 if (const FunctionDecl *FD =
871 dyn_cast<FunctionDecl>((*I)->getFriendDecl()))
948 if (auto Func = dyn_cast<FunctionDecl>(PII.first))
1056 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl)))
1189 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) {
1190 const FunctionDecl *DiagD;
1312 FunctionDecl *Sema::getCurFunctionDecl() {
1314 return dyn_cast<FunctionDecl>(DC);
1326 if (isa<ObjCMethodDecl>(DC) || isa<FunctionDecl>(DC))
1445 static void emitCallStackNotes(Sema &S, FunctionDecl *FD) {
1496 llvm::SmallVector<CanonicalDeclPtr<FunctionDecl>, 4> UsePath;
1524 if (auto *FD = dyn_cast<FunctionDecl>(D))
1545 void checkFunc(SourceLocation Loc, FunctionDecl *FD) {
1547 FunctionDecl *Caller = UsePath.empty() ? nullptr : UsePath.back();
1575 if (auto *FD = dyn_cast<FunctionDecl>(D)) {
1584 void emitDeferredDiags(FunctionDecl *FD, bool ShowCallStack) {
1653 unsigned DiagID, FunctionDecl *Fn,
2140 if (const FunctionDecl *OverloadDecl
2141 = dyn_cast<FunctionDecl>((*it)->getUnderlyingDecl())) {
2177 if (const FunctionDecl *Fun = dyn_cast<FunctionDecl>(DeclRef->getDecl())) {
2184 // We don't have an expression that's convenient to get a FunctionDecl from,
2253 const FunctionDecl *OverloadDecl = cast<FunctionDecl>(*It);
2282 if (const auto *FD = dyn_cast<FunctionDecl>(ND))
2395 std::string Sema::getOpenCLExtensionsFromDeclExtMap(FunctionDecl *FD) {