Lines Matching refs:decl
76 // If we have an invalid decl, just return an error.
90 Decl *decl = DG.getSingleDecl();
91 if (!decl || decl->isInvalidDecl())
95 VarDecl *var = dyn_cast<VarDecl>(decl);
97 Diag(decl->getLocation(), diag::err_non_variable_decl_in_for);
98 decl->setInvalidDecl();
252 if (const Decl *FD = CE->getCalleeDecl()) {
339 // Note that __extension__ can be around a decl.
350 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin();
1473 // Load decl names into diagnostic.
1852 static bool FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Expr *Init,
1854 if (Decl->getType()->isUndeducedType()) {
1857 Decl->setInvalidDecl();
1867 SemaRef.DeduceAutoType(Decl->getTypeSourceInfo(), Init, InitType) ==
1871 Decl->setInvalidDecl();
1874 Decl->setType(InitType);
1880 SemaRef.inferObjCARCLifetime(Decl))
1881 Decl->setInvalidDecl();
1883 SemaRef.AddInitializerToDecl(Decl, Init, /*DirectInit=*/false,
1885 SemaRef.FinalizeDeclaration(Decl);
1886 SemaRef.CurContext->addHiddenDecl(Decl);
1930 VarDecl *Decl = VarDecl::Create(SemaRef.Context, DC, Loc, Loc, II, Type,
1932 Decl->setImplicit();
1933 return Decl;
1973 assert(DS && "first part of for range not a decl stmt");
1980 Decl *LoopVar = DS->getSingleDecl();
2007 BuildDeclaratorGroup(MutableArrayRef<Decl *>((Decl **)&RangeVar, 1),
2152 InvalidateOnErrorScope(Sema &SemaRef, Decl *D, bool Enabled)
2160 Decl *D;
2740 if (VD->getKind() != Decl::Var &&
2741 !(AllowParamOrMoveConstructible && VD->getKind() == Decl::ParmVar))
3407 SourceLocation RParen, Decl *Parm,
3523 Sema::ActOnCXXCatchBlock(SourceLocation CatchLoc, Decl *ExDecl,
3684 // decl, if there is one.
3969 SmallVector<Decl*, 4> Fields(Record->fields());