Lines Matching refs:FunctionDecl
440 static bool functionDeclHasDefaultArgument(const FunctionDecl *FD) {
450 bool Sema::MergeCXXFunctionDecl(FunctionDecl *New, FunctionDecl *Old,
462 FunctionDecl *PrevForDefaultArgs = Old;
652 const FunctionDecl *Def;
1544 void Sema::CheckCXXDefaultArguments(FunctionDecl *FD) {
1642 const FunctionDecl *FD,
1662 static bool CheckConstexprReturnType(Sema &SemaRef, const FunctionDecl *FD,
1685 static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
1695 bool Sema::CheckConstexprFunctionDefinition(const FunctionDecl *NewFD,
1782 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl,
1924 const FunctionDecl *Dcl,
1979 CheckConstexprFunctionStmt(Sema &SemaRef, const FunctionDecl *Dcl, Stmt *S,
2124 static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
5790 FunctionDecl *FD = cast<FunctionTemplateDecl>(D)->getTemplatedDecl();
6200 for (FunctionDecl *FD = MD->getMostRecentDecl(); FD;
6286 Sema::getDefaultedFunctionKind(const FunctionDecl *FD) {
6339 static void DefineDefaultedFunction(Sema &S, FunctionDecl *FD,
6617 llvm::SmallVector<FunctionDecl*, 5> DefaultedSecondaryComparisons;
6659 auto CheckForDefaultedFunction = [&](FunctionDecl *FD) -> bool {
6758 dyn_cast_or_null<FunctionDecl>(F->getFriendDecl()));
6769 for (FunctionDecl *FD : DefaultedSecondaryComparisons) {
7091 ComputingExceptionSpec(Sema &S, FunctionDecl *FD, SourceLocation Loc)
7112 FunctionDecl *FD,
7116 computeImplicitExceptionSpec(Sema &S, SourceLocation Loc, FunctionDecl *FD) {
7150 void Sema::EvaluateImplicitExceptionSpec(SourceLocation Loc, FunctionDecl *FD) {
7163 void Sema::CheckExplicitlyDefaultedFunction(Scope *S, FunctionDecl *FD) {
7320 MD->getTemplatedKind() == FunctionDecl::TK_NonTemplate) {
7401 DefaultedComparisonVisitor(Sema &S, CXXRecordDecl *RD, FunctionDecl *FD,
7497 FunctionDecl *FD;
7551 DefaultedComparisonAnalyzer(Sema &S, CXXRecordDecl *RD, FunctionDecl *FD,
7681 if (FunctionDecl *BestFD = Best->Function) {
7853 DefaultedComparisonSynthesizer(Sema &S, CXXRecordDecl *RD, FunctionDecl *FD,
8235 bool Sema::CheckExplicitlyDefaultedComparison(Scope *S, FunctionDecl *FD,
8248 FD->setDefaultedFunctionInfo(FunctionDecl::DefaultedFunctionInfo::Create(
8447 FunctionDecl *Spaceship) {
8454 if (FunctionDecl *EqualEqual = SubstSpaceshipAsEqualEqual(RD, Spaceship))
8460 void Sema::DefineDefaultedComparison(SourceLocation UseLoc, FunctionDecl *FD,
8497 FunctionDecl *FD,
9099 FunctionDecl *OperatorDelete = nullptr;
9144 void Sema::DiagnoseDeletedDefaultedFunction(FunctionDecl *FD) {
9816 llvm::SmallVectorImpl<FunctionDecl *> &Spaceships) {
9824 FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(Friend->getFriendDecl());
9844 if (auto *FD = dyn_cast<FunctionDecl>(ND))
9944 llvm::SmallVector<FunctionDecl *, 4> DefaultedSpaceships;
9968 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
10082 FunctionDecl *Method = cast<FunctionDecl>(MethodD);
10233 if (FunctionDecl *OperatorDelete =
11254 bool Sema::isInitListConstructor(const FunctionDecl *Ctor) {
11631 if (FunctionDecl *FD = Target->getAsFunction()) {
12879 void Sema::CheckImplicitSpecialMemberDeclaration(Scope *S, FunctionDecl *FD) {
13559 FunctionDecl *MemCpy = R.getAsSingle<FunctionDecl>();
14786 bool Sema::isImplicitlyDeleted(FunctionDecl *FD) {
14797 FunctionDecl *CallOp = Lambda->getLambdaCallOperator();
14798 FunctionDecl *Invoker = Lambda->getLambdaStaticInvoker();
15192 const FunctionDecl *FnDecl) {
15218 CheckOperatorNewDeleteTypes(Sema &SemaRef, const FunctionDecl *FnDecl,
15282 CheckOperatorNewDeclaration(Sema &SemaRef, const FunctionDecl *FnDecl) {
15313 CheckOperatorDeleteDeclaration(Sema &SemaRef, FunctionDecl *FnDecl) {
15357 bool Sema::CheckOverloadedOperatorDeclaration(FunctionDecl *FnDecl) {
15537 bool Sema::CheckLiteralOperatorDeclaration(FunctionDecl *FnDecl) {
15617 FunctionDecl::param_iterator Param = FnDecl->param_begin();
16407 FunctionDecl *FunctionContainingLocalClass = nullptr;
16626 FunctionDecl *FD;
16630 FD = cast<FunctionDecl>(ND);
16663 FunctionDecl *Fn = dyn_cast_or_null<FunctionDecl>(Dcl);
16672 if (const FunctionDecl *Prev = Fn->getPreviousDecl()) {
16716 auto *FD = dyn_cast<FunctionDecl>(Dcl);
16779 const FunctionDecl *Primary = FD;
16780 if (const FunctionDecl *Pattern = FD->getTemplateInstantiationPattern())
17066 if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function.
17239 const FunctionDecl *KeyFunctionDef = nullptr;
17366 const FunctionDecl *FNTarget = nullptr;
17399 const FunctionDecl *FNTarget = nullptr;