Home | History | Annotate | Download | only in Sema

Lines Matching refs:FunctionDecl

1091   if (isa<FunctionDecl>(DC) && !isLambdaCallOperator(DC)) {
1193 FunctionDecl *FD = D->getAsFunction();
1266 if (isa<FunctionDecl>(D) &&
1267 cast<FunctionDecl>(D)->isFunctionTemplateSpecialization())
1431 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
1477 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
1478 const FunctionDecl *First = FD->getFirstDecl();
1817 FunctionDecl *New = FunctionDecl::Create(Context,
1826 // FunctionDecl.
2330 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D))
2357 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(New)) {
2359 S.CheckForFunctionRedefinition(FD, cast<FunctionDecl>(Def), &SkipBody);
2452 << isa<FunctionDecl>(Old) << New->getAttr<AsmLabelAttr>()->getRange();
2530 const FunctionDecl *FirstFD =
2531 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl();
2642 static bool canRedefineFunction(const FunctionDecl *FD,
2713 static bool hasIdenticalPassObjectSizeAttrs(const FunctionDecl *A,
2714 const FunctionDecl *B) {
2739 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD,
2742 FunctionDecl *Old = OldD->getAsFunction();
2755 if (checkUsingShadowRedecl<FunctionDecl>(*this, Shadow, New))
2757 OldD = Old = cast<FunctionDecl>(Shadow->getTargetDecl());
2824 FunctionDecl *First = Old->getFirstDecl();
3263 bool Sema::MergeCompatibleFunctionDecls(FunctionDecl *New, FunctionDecl *Old,
4389 else if (isa<FunctionDecl>(Mem))
4685 FunctionDecl *Declaration,
4686 FunctionDecl *Definition,
4871 else if (isa<FunctionDecl>(Cur))
5565 if (isa<FunctionDecl>(ND) || !ND.isExternallyVisible()) {
5632 auto *FD = dyn_cast<FunctionDecl>(OldDecl);
5633 if (FD && FD->getTemplatedKind() == FunctionDecl::TK_NonTemplate)
5641 if (!isa<FunctionDecl>(OldDecl) || !NewImportAttr)
5668 } else if (const auto *FD = dyn_cast<FunctionDecl>(NewDecl)) {
5707 static bool isFunctionDefinitionDiscarded(Sema &S, FunctionDecl *FD) {
5779 static bool shouldConsiderLinkage(const FunctionDecl *FD) {
5840 if (const auto *FD = dyn_cast<FunctionDecl>(D))
6246 FunctionDecl *CurFD = getCurFunctionDecl();
6705 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Prev))
6865 FunctionDecl *FD = getCurFunctionDecl();
7113 FunctionDecl *TypoFD,
7126 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl);
7145 FunctionDecl *OriginalFD;
7161 Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD,
7166 SmallVector<std::pair<FunctionDecl *, unsigned>, 1> NearMatches;
7187 FunctionDecl *FD = dyn_cast<FunctionDecl>(*Func);
7212 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl);
7272 for (SmallVectorImpl<std::pair<FunctionDecl *, unsigned> >::iterator
7275 FunctionDecl *FD = NearMatch->first;
7335 static FunctionDecl* CreateNewFunctionDecl(Sema &SemaRef, Declarator &D,
7343 FunctionDecl *NewFD = nullptr;
7356 NewFD = FunctionDecl::Create(SemaRef.Context, DC,
7417 // Create a FunctionDecl to satisfy the function definition parsing
7419 return FunctionDecl::Create(SemaRef.Context, DC,
7470 return FunctionDecl::Create(SemaRef.Context, DC,
7694 FunctionDecl *NewFD = CreateNewFunctionDecl(*this, D, DC, R, TInfo, SC,
8523 // Set this FunctionDecl's range up to the right paren.
8634 bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD,
8715 if (IsOverload(NewFD, cast<FunctionDecl>(OldDecl), false)) {
8793 FunctionDecl *const OldTemplatedDecl =
8802 NewFD->setPreviousDeclaration(cast<FunctionDecl>(OldDecl));
8904 void Sema::CheckMain(FunctionDecl* FD, const DeclSpec& DS) {
9051 void Sema::CheckMSVCRTEntryPoint(FunctionDecl *FD) {
9343 if (FunctionDecl *FD = E->getDirectCallee()) {
10515 if (FunctionDecl *FD =
10516 dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod())) {
10602 auto *F = dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod());
11084 void Sema::ActOnFinishInlineFunctionDef(FunctionDecl *D) {
11088 static bool ShouldWarnAboutMissingPrototype(const FunctionDecl *FD,
11089 const FunctionDecl*& PossibleZeroParamPrototype) {
11127 for (const FunctionDecl *Prev = FD->getPreviousDecl();
11144 Sema::CheckForFunctionRedefinition(FunctionDecl *FD,
11145 const FunctionDecl *EffectiveDefinition,
11149 const FunctionDecl *Definition = EffectiveDefinition;
11168 makeMergedDefinitionVisible(const_cast<FunctionDecl*>(Definition),
11239 FunctionDecl *FD = nullptr;
11244 FD = cast<FunctionDecl>(D);
11327 // Either way, reassign the lexical decl context to our FunctionDecl.
11420 if (const FunctionDecl *FD = D->getAsFunction())
11427 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(Decl))
11440 FunctionDecl *FD = dcl ? dcl->getAsFunction() : nullptr;
11537 const FunctionDecl *PossibleZeroParamPrototype = nullptr;
11570 const FunctionDecl *Definition;
11758 llvm::make_unique<DeclFilterCCC<FunctionDecl>>(), CTK_NonError)))
11805 FunctionDecl *FD = cast<FunctionDecl>(ActOnDeclarator(TUScope, D));
11824 void Sema::AddKnownFunctionAttributes(FunctionDecl *FD) {
15191 if (PrevDecl && (isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) {
15196 << /*Variable*/(isa<FunctionDecl>(PrevDecl) ? 0 : 1) << PrevDecl;
15225 if (PrevDecl && (isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) {