Lines Matching refs:decl
70 // If we have an invalid decl, just return an error.
84 Decl *decl = DG.getSingleDecl();
85 if (!decl || decl->isInvalidDecl())
89 VarDecl *var = dyn_cast<VarDecl>(decl);
91 Diag(decl->getLocation(), diag::err_non_variable_decl_in_for);
92 decl->setInvalidDecl();
218 if (const Decl *FD = CE->getCalleeDecl()) {
302 // Note that __extension__ can be around a decl.
313 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin();
432 Sema::ActOnIfStmt(SourceLocation IfLoc, FullExprArg CondVal, Decl *CondVar,
571 Decl *CondVar) {
1169 Decl *CondVar, Stmt *Body) {
1397 // Load decl names into diagnostic.
1523 Stmt *First, FullExprArg second, Decl *secondVar,
1739 static bool FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Expr *Init,
1745 SemaRef.DeduceAutoType(Decl->getTypeSourceInfo(), Init, InitType) ==
1749 Decl->setInvalidDecl();
1752 Decl->setType(InitType);
1758 SemaRef.inferObjCARCLifetime(Decl))
1759 Decl->setInvalidDecl();
1761 SemaRef.AddInitializerToDecl(Decl, Init, /*DirectInit=*/false,
1763 SemaRef.FinalizeDeclaration(Decl);
1764 SemaRef.CurContext->addHiddenDecl(Decl);
1802 VarDecl *Decl = VarDecl::Create(SemaRef.Context, DC, Loc, Loc, II, Type,
1804 Decl->setImplicit();
1805 return Decl;
1844 assert(DS && "first part of for range not a decl stmt");
1867 BuildDeclaratorGroup(llvm::MutableArrayRef<Decl *>((Decl **)&RangeVar, 1),
2145 Decl *BeginEndDecls[] = { BeginVar, EndVar };
2148 BuildDeclaratorGroup(llvm::MutableArrayRef<Decl *>(BeginEndDecls, 2),
2358 if (VD->getKind() != Decl::Var &&
2359 !(AllowFunctionParameter && VD->getKind() == Decl::ParmVar))
2853 SourceLocation RParen, Decl *Parm,
2956 Sema::ActOnCXXCatchBlock(SourceLocation CatchLoc, Decl *ExDecl,
3208 SmallVector<Decl*, 4> Fields;