Lines Matching refs:VarDecl
77 VarDecl *var = cast<VarDecl>(DG.getSingleDecl()); in ActOnForEachDeclStmt()
430 VarDecl *ConditionVar = 0; in ActOnIfStmt()
432 ConditionVar = cast<VarDecl>(CondVar); in ActOnIfStmt()
560 VarDecl *ConditionVar = 0; in ActOnStartOfSwitchStmt()
562 ConditionVar = cast<VarDecl>(CondVar); in ActOnStartOfSwitchStmt()
1159 VarDecl *ConditionVar = 0; in ActOnWhileStmt()
1161 ConditionVar = cast<VarDecl>(CondVar); in ActOnWhileStmt()
1205 llvm::SmallPtrSet<VarDecl*, 8> &Decls;
1211 DeclExtractor(Sema &S, llvm::SmallPtrSet<VarDecl*, 8> &Decls, in DeclExtractor() argument
1270 VarDecl *VD = dyn_cast<VarDecl>(E->getDecl()); in VisitDeclRefExpr()
1283 llvm::SmallPtrSet<VarDecl*, 8> &Decls;
1289 DeclMatcher(Sema &S, llvm::SmallPtrSet<VarDecl*, 8> &Decls, Stmt *Statement) : in DeclMatcher() argument
1340 if (VarDecl *VD = dyn_cast<VarDecl>(E->getDecl())) in VisitDeclRefExpr()
1360 llvm::SmallPtrSet<VarDecl*, 8> Decls; in CheckForLoopConditionalStatement()
1372 for (llvm::SmallPtrSet<VarDecl*, 8>::iterator I = Decls.begin(), in CheckForLoopConditionalStatement()
1388 for (llvm::SmallPtrSet<VarDecl*, 8>::iterator I = Decls.begin(), in CheckForLoopConditionalStatement()
1421 VarDecl *VD = dyn_cast<VarDecl>(*DI); in ActOnForStmt()
1434 VarDecl *ConditionVar = 0; in ActOnForStmt()
1436 ConditionVar = cast<VarDecl>(secondVar); in ActOnForStmt()
1560 VarDecl *D = cast<VarDecl>(DS->getSingleDecl()); in ActOnObjCForCollectionStmt()
1598 static bool FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Expr *Init, in FinishForRangeVarDecl()
1657 VarDecl *BuildForRangeVarDecl(Sema &SemaRef, SourceLocation Loc, in BuildForRangeVarDecl()
1662 VarDecl *Decl = VarDecl::Create(SemaRef.Context, DC, Loc, Loc, II, Type, in BuildForRangeVarDecl()
1718 VarDecl *RangeVar = BuildForRangeVarDecl(*this, RangeLoc, in ActOnCXXForRangeStmt()
1749 VarDecl *BeginVar, in BuildNonArrayForRange()
1750 VarDecl *EndVar, in BuildNonArrayForRange()
1868 VarDecl *RangeVar = cast<VarDecl>(RangeDS->getSingleDecl()); in BuildCXXForRangeStmt()
1872 VarDecl *LoopVar = cast<VarDecl>(LoopVarDS->getSingleDecl()); in BuildCXXForRangeStmt()
1903 VarDecl *BeginVar = BuildForRangeVarDecl(*this, ColonLoc, AutoType, in BuildCXXForRangeStmt()
1905 VarDecl *EndVar = BuildForRangeVarDecl(*this, ColonLoc, AutoType, in BuildCXXForRangeStmt()
2185 const VarDecl *Sema::getCopyElisionCandidate(QualType ReturnType, in getCopyElisionCandidate()
2204 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()); in getCopyElisionCandidate()
2241 const VarDecl *NRVOCandidate, in PerformMoveOrCopyInitialization()
2368 const VarDecl *NRVOCandidate = 0; in ActOnCapScopeReturnStmt()
2535 const VarDecl *NRVOCandidate = 0; in ActOnReturnStmt()
2598 VarDecl *Var = cast_or_null<VarDecl>(Parm); in ActOnObjCAtCatchStmt()
2703 cast_or_null<VarDecl>(ExDecl), in ActOnCXXCatchBlock()