Lines Matching refs:Var
431 Capture(VarDecl *Var, bool Block, bool ByRef, bool IsNested,
434 : VarAndNested(Var, IsNested),
513 void addCapture(VarDecl *Var, bool isBlock, bool isByref, bool isNested,
516 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc,
518 CaptureMap[Var] = Captures.size();
522 Captures.push_back(Capture(/*Var*/ nullptr, /*isBlock*/ false,
541 bool isCaptured(VarDecl *Var) const {
542 return CaptureMap.count(Var);
550 Capture &getCapture(VarDecl *Var) {
551 assert(isCaptured(Var) && "Variable has not been captured");
552 return Captures[CaptureMap[Var] - 1];
555 const Capture &getCapture(VarDecl *Var) const {
557 = CaptureMap.find(Var);