Lines Matching defs:Var
376 Capture(VarDecl *Var, bool Block, bool ByRef, bool IsNested,
379 : VarOrField(VarAndNested(Var, IsNested)),
463 void addCapture(VarDecl *Var, bool isBlock, bool isByref, bool isNested,
466 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc,
468 CaptureMap[Var] = Captures.size();
488 bool isCaptured(VarDecl *Var) const {
489 return CaptureMap.count(Var);
494 Capture &getCapture(VarDecl *Var) {
495 assert(isCaptured(Var) && "Variable has not been captured");
496 return Captures[CaptureMap[Var] - 1];
499 const Capture &getCapture(VarDecl *Var) const {
501 = CaptureMap.find(Var);