Lines Matching refs:FunctionDecl

131   class FunctionDecl;  variable
891 SmallVector<std::pair<FunctionDecl*, FunctionDecl*>, 2>
894 typedef llvm::MapVector<const FunctionDecl *,
1045 if (auto *FD = dyn_cast<FunctionDecl>(DC)) in SynthesizedFunctionScope()
1066 if (auto *FD = dyn_cast<FunctionDecl>(S.CurContext)) in ~SynthesizedFunctionScope()
1663 FunctionDecl *Fn, Sema &S);
1738 FunctionDecl *Fn;
1992 void UpdateExceptionSpec(FunctionDecl *FD,
1996 bool CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New);
2665 void MaybeSuggestAddingStaticToDecl(const FunctionDecl *D);
2682 bool CheckConstexprFunctionDefinition(const FunctionDecl *FD,
2692 FunctionDecl *NewFD, LookupResult &Previous,
2697 void CheckMain(FunctionDecl *FD, const DeclSpec &D);
2698 void CheckMSVCRTEntryPoint(FunctionDecl *FD);
2699 Attr *getImplicitCodeSegOrSectionAttrForFunction(const FunctionDecl *FD,
2789 FunctionDecl *FD, const FunctionDecl *EffectiveDefinition = nullptr,
2827 void ActOnFinishInlineFunctionDef(FunctionDecl *D);
3098 DefaultedFunctionKind getDefaultedFunctionKind(const FunctionDecl *FD);
3103 DefaultedComparisonKind getDefaultedComparisonKind(const FunctionDecl *FD) { in getDefaultedComparisonKind()
3210 FunctionDecl *getCurFunctionDecl();
3339 bool MergeFunctionDecl(FunctionDecl *New, NamedDecl *&Old, Scope *S,
3341 bool MergeCompatibleFunctionDecls(FunctionDecl *New, FunctionDecl *Old,
3349 bool MergeCXXFunctionDecl(FunctionDecl *New, FunctionDecl *Old, Scope *S);
3379 FunctionDecl *New,
3383 bool IsOverload(FunctionDecl *New, FunctionDecl *Old, bool IsForUsingDecl,
3599 void AddOverloadCandidate(FunctionDecl *Function, DeclAccessPair FoundDecl,
3698 NamedDecl *Found, FunctionDecl *Fn,
3709 EnableIfAttr *CheckEnableIf(FunctionDecl *Function, SourceLocation CallLoc,
3724 bool diagnoseArgDependentDiagnoseIfAttrs(const FunctionDecl *Function,
3743 bool checkAddressOfFunctionIsAvailable(const FunctionDecl *Function,
3755 FunctionDecl *
3762 FunctionDecl *
3768 FunctionDecl *
3784 FunctionDecl *Fn);
3787 FunctionDecl *Fn);
3847 FunctionDecl *DefaultedFn = nullptr);
3851 FunctionDecl *DefaultedFn);
3875 CallExpr *CE, FunctionDecl *FD);
3880 void CheckCXXDefaultArguments(FunctionDecl *FD);
4132 FunctionEmissionStatus getEmissionStatus(FunctionDecl *Decl,
4136 bool shouldIgnoreInHostDeviceCheck(FunctionDecl *Callee);
4242 FunctionDecl *CreateBuiltin(IdentifierInfo *II, QualType Type, unsigned ID,
4250 FunctionDecl *FD);
4251 void AddKnownFunctionAttributes(FunctionDecl *FD);
4283 const FunctionDecl *FD = nullptr);
4931 void NoteDeletedFunction(FunctionDecl *FD);
4973 void MarkFunctionReferenced(SourceLocation Loc, FunctionDecl *Func,
5366 FunctionDecl *FDecl,
5659 bool isInitListConstructor(const FunctionDecl *Ctor);
5764 bool CheckCXXDefaultArgExpr(SourceLocation CallLoc, FunctionDecl *FD,
5770 FunctionDecl *FD,
5847 void EvaluateImplicitExceptionSpec(SourceLocation Loc, FunctionDecl *FD);
5887 void DiagnoseDeletedDefaultedFunction(FunctionDecl *FD);
5983 void CheckImplicitSpecialMemberDeclaration(Scope *S, FunctionDecl *FD);
5987 bool isImplicitlyDeleted(FunctionDecl *FD);
6012 ExprResult CheckForImmediateInvocation(ExprResult E, FunctionDecl *Decl);
6226 bool isUnavailableAlignedAllocationFunction(const FunctionDecl &FD) const;
6230 void diagnoseUnavailableAlignedAllocation(const FunctionDecl &FD,
6255 FunctionDecl *&OperatorNew,
6256 FunctionDecl *&OperatorDelete,
6263 DeclarationName Name, FunctionDecl* &Operator,
6265 FunctionDecl *FindUsualDeallocationFunction(SourceLocation StartLoc,
6269 FunctionDecl *FindDeallocationFunctionForDestructor(SourceLocation StartLoc,
6807 bool CheckFunctionConstraints(const FunctionDecl *FD,
7106 void MarkAsLateParsedTemplate(FunctionDecl *FD, Decl *FnD,
7108 void UnmarkAsLateParsedTemplate(FunctionDecl *FD);
7142 void CheckExplicitlyDefaultedFunction(Scope *S, FunctionDecl *MD);
7148 bool CheckExplicitlyDefaultedComparison(Scope *S, FunctionDecl *MD,
7151 FunctionDecl *Spaceship);
7152 void DefineDefaultedComparison(SourceLocation Loc, FunctionDecl *FD,
7339 bool CheckOverloadedOperatorDeclaration(FunctionDecl *FnDecl);
7341 bool CheckLiteralOperatorDeclaration(FunctionDecl *FnDecl);
7657 bool CheckDependentFunctionTemplateSpecialization(FunctionDecl *FD,
7662 FunctionDecl *FD, TemplateArgumentListInfo *ExplicitTemplateArgs,
8411 unsigned NumExplicitlySpecified, FunctionDecl *&Specialization,
8420 FunctionDecl *&Specialization, sema::TemplateDeductionInfo &Info,
8428 FunctionDecl *&Specialization,
8441 FunctionDecl *&Specialization,
8472 bool DeduceReturnType(FunctionDecl *FD, SourceLocation Loc,
8489 TypeLoc getReturnTypeLoc(FunctionDecl *FD) const;
8491 bool DeduceFunctionTypeFromReturnExpr(FunctionDecl *FD,
8551 const FunctionDecl *Pattern = nullptr);
8830 FunctionDecl *Entity, ExceptionSpecification,
9247 void SubstExceptionSpec(FunctionDecl *New, const FunctionProtoType *Proto,
9302 FunctionDecl *SubstSpaceshipAsEqualEqual(CXXRecordDecl *RD,
9303 FunctionDecl *Spaceship);
9389 bool InstantiateDefaultArgument(SourceLocation CallLoc, FunctionDecl *FD,
9392 FunctionDecl *Function);
9394 SourceLocation PointOfInstantiation, FunctionDecl *Decl,
9397 FunctionDecl *InstantiateFunctionDeclaration(FunctionTemplateDecl *FTD,
9401 FunctionDecl *Function,
10063 void AddRangeBasedOptnone(FunctionDecl *FD);
10068 void AddOptnoneAttributeIfNoConflicts(FunctionDecl *FD, SourceLocation Loc);
10141 void CheckCompletedCoroutineBody(FunctionDecl *FD, Stmt *&Body);
10235 SmallVectorImpl<FunctionDecl *> &Bases);
10240 Decl *D, SmallVectorImpl<FunctionDecl *> &Bases);
10266 const FunctionDecl *OldFD, const FunctionDecl *NewFD,
10456 void finalizeOpenMPDelayedAnalysis(const FunctionDecl *Caller,
10457 const FunctionDecl *Callee,
10807 Optional<std::pair<FunctionDecl *, Expr *>>
10818 void ActOnOpenMPDeclareVariantDirective(FunctionDecl *FD, Expr *VariantRef,
11307 VariadicCallType getVariadicCallType(FunctionDecl *FDecl,
11345 bool GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl,
11356 FunctionDecl *FDecl);
11955 llvm::DenseMap<CanonicalDeclPtr<FunctionDecl>,
11962 CanonicalDeclPtr<FunctionDecl> FD;
11976 llvm::DenseMap</* Callee = */ CanonicalDeclPtr<FunctionDecl>,
12022 diagIfOpenMPDeviceCode(SourceLocation Loc, unsigned DiagID, FunctionDecl *FD);
12038 unsigned DiagID, FunctionDecl *FD);
12041 FunctionDecl *FD = nullptr);
12044 FunctionDecl *FD = nullptr) {
12065 CUDAFunctionTarget IdentifyCUDATarget(const FunctionDecl *D,
12080 return IdentifyCUDATarget(dyn_cast<FunctionDecl>(CurContext)); in CurrentCUDATarget()
12083 static bool isCUDAImplicitHostDeviceFunction(const FunctionDecl *D);
12105 CUDAFunctionPreference IdentifyCUDAPreference(const FunctionDecl *Caller,
12106 const FunctionDecl *Callee);
12113 bool IsAllowedCUDACall(const FunctionDecl *Caller, in IsAllowedCUDACall()
12114 const FunctionDecl *Callee) { in IsAllowedCUDACall()
12120 void maybeAddCUDAHostDeviceAttrs(FunctionDecl *FD,
12142 bool CheckCUDACall(SourceLocation Loc, FunctionDecl *Callee);
12157 const FunctionDecl *Caller,
12158 SmallVectorImpl<std::pair<DeclAccessPair, FunctionDecl *>> &Matches);
12194 void checkCUDATargetOverload(FunctionDecl *NewFD,
12197 void inheritCUDATargetAttrs(FunctionDecl *FD, const FunctionTemplateDecl &TD);
12411 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall,
12418 void CheckConstructorCall(FunctionDecl *FDecl, QualType ThisType,
12433 ExprResult CheckBuiltinFunctionCall(FunctionDecl *FDecl,
12439 void checkFortifiedBuiltinMemoryFunction(FunctionDecl *FD, CallExpr *TheCall);
12571 const FunctionDecl *FDecl);
12573 void CheckMaxUnsignedZero(const CallExpr *Call, const FunctionDecl *FDecl);
12591 const FunctionDecl *FD = nullptr);
12624 void CheckTCBEnforcement(const CallExpr *TheCall, const FunctionDecl *Callee);
12881 bool checkSYCLDeviceFunction(SourceLocation Loc, FunctionDecl *Callee);
12958 using FDBaseInfo = DenseMapInfo<clang::CanonicalDeclPtr<clang::FunctionDecl>>;