Lines Matching refs:FunctionDecl
472 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader()
658 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in ShouldRemoveFromUnused()
668 const FunctionDecl *DeclToCheck; in ShouldRemoveFromUnused()
713 if (auto *FD = dyn_cast<FunctionDecl>(ND)) in isFunctionOrVarDeclExternC()
752 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { in getUndefinedButUsed()
816 } else if (auto *FD = dyn_cast<FunctionDecl>(VD)) { in checkUndefinedButUsed()
913 if (const FunctionDecl *FD = in IsRecordFullyDefined()
914 dyn_cast<FunctionDecl>((*I)->getFriendDecl())) in IsRecordFullyDefined()
991 if (auto Func = dyn_cast<FunctionDecl>(PII.first)) in ActOnEndOfTranslationUnitFragment()
1099 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) in ActOnEndOfTranslationUnit()
1232 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) { in ActOnEndOfTranslationUnit()
1233 const FunctionDecl *DiagD; in ActOnEndOfTranslationUnit()
1354 FunctionDecl *Sema::getCurFunctionDecl() { in getCurFunctionDecl()
1356 return dyn_cast<FunctionDecl>(DC); in getCurFunctionDecl()
1368 if (isa<ObjCMethodDecl>(DC) || isa<FunctionDecl>(DC)) in getCurFunctionOrMethodDecl()
1485 auto *FD = dyn_cast<FunctionDecl>(CurContext); in hasUncompilableErrorOccurred()
1500 static void emitCallStackNotes(Sema &S, FunctionDecl *FD) { in emitCallStackNotes()
1551 llvm::SmallVector<CanonicalDeclPtr<FunctionDecl>, 4> UsePath;
1581 if (auto *FD = dyn_cast<FunctionDecl>(D)) in visitUsedDecl()
1602 void checkFunc(SourceLocation Loc, FunctionDecl *FD) { in checkFunc()
1604 FunctionDecl *Caller = UsePath.empty() ? nullptr : UsePath.back(); in checkFunc()
1633 if (auto *FD = dyn_cast<FunctionDecl>(D)) { in checkRecordedDecl()
1642 void emitDeferredDiags(FunctionDecl *FD, bool ShowCallStack) { in emitDeferredDiags()
1712 FunctionDecl *Fn, Sema &S) in SemaDiagnosticBuilder()
1758 Sema::targetDiag(SourceLocation Loc, unsigned DiagID, FunctionDecl *FD) { in targetDiag()
1817 FunctionDecl *FD = in checkDeviceDecl()
1818 isa<FunctionDecl>(C) ? cast<FunctionDecl>(C) : dyn_cast<FunctionDecl>(D); in checkDeviceDecl()
2246 if (const FunctionDecl *OverloadDecl in tryExprAsCall()
2247 = dyn_cast<FunctionDecl>((*it)->getUnderlyingDecl())) { in tryExprAsCall()
2283 if (const FunctionDecl *Fun = dyn_cast<FunctionDecl>(DeclRef->getDecl())) { in tryExprAsCall()
2359 const FunctionDecl *OverloadDecl = cast<FunctionDecl>(*It); in notePlausibleOverloads()
2388 if (const auto *FD = dyn_cast<FunctionDecl>(ND)) in IsCPUDispatchCPUSpecificMultiVersion()