Lines Matching refs:Var
808 Stmt *Init, VarDecl *Var, Expr *Cond, Stmt *Then, in IfStmt() argument
812 bool HasVar = Var != nullptr; in IfStmt()
825 setConditionVariable(Ctx, Var); in IfStmt()
842 bool IsConstexpr, Stmt *Init, VarDecl *Var, Expr *Cond, in Create() argument
845 bool HasVar = Var != nullptr; in Create()
852 IfStmt(Ctx, IL, IsConstexpr, Init, Var, Cond, Then, EL, Else); in Create()
921 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() argument
925 bool HasVar = Var != nullptr; in SwitchStmt()
935 setConditionVariable(Ctx, Var); in SwitchStmt()
947 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create() argument
950 bool HasVar = Var != nullptr; in Create()
954 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond); in Create()
986 WhileStmt::WhileStmt(const ASTContext &Ctx, VarDecl *Var, Expr *Cond, in WhileStmt() argument
989 bool HasVar = Var != nullptr; in WhileStmt()
995 setConditionVariable(Ctx, Var); in WhileStmt()
1005 WhileStmt *WhileStmt::Create(const ASTContext &Ctx, VarDecl *Var, Expr *Cond, in Create() argument
1007 bool HasVar = Var != nullptr; in Create()
1011 return new (Mem) WhileStmt(Ctx, Var, Cond, Body, WL); in Create()
1141 VarDecl *Var) in Capture() argument
1142 : VarAndKind(Var, Kind), Loc(Loc) { in Capture()
1145 assert(!Var && "'this' capture cannot have a variable!"); in Capture()
1148 assert(Var && "capturing by reference must have a variable!"); in Capture()
1151 assert(Var && "capturing by copy must have a variable!"); in Capture()
1153 (Var->getType()->isScalarType() || (Var->getType()->isReferenceType() && in Capture()
1154 Var->getType() in Capture()
1161 assert(!Var && in Capture()
1289 bool CapturedStmt::capturesVariable(const VarDecl *Var) const { in capturesVariable()
1293 if (I.getCapturedVar()->getCanonicalDecl() == Var->getCanonicalDecl()) in capturesVariable()