Searched refs:VarDC (Results 1 – 1 of 1) sorted by relevance
13136 DeclContext *VarDC = var->getDeclContext(); in diagnoseUncapturableValueReference() local13142 isa<TranslationUnitDecl>(VarDC)) in diagnoseUncapturableValueReference()13155 if (isa<CXXMethodDecl>(VarDC) && in diagnoseUncapturableValueReference()13156 cast<CXXRecordDecl>(VarDC->getParent())->isLambda()) { in diagnoseUncapturableValueReference()13159 } else if (FunctionDecl *fn = dyn_cast<FunctionDecl>(VarDC)) { in diagnoseUncapturableValueReference()13162 } else if (isa<BlockDecl>(VarDC)) { in diagnoseUncapturableValueReference()13558 DeclContext *VarDC = Var->getDeclContext(); in tryCaptureVariable() local13560 VarDC = VarDC->getParent(); in tryCaptureVariable()13578 if (VarDC == DC) return true; in tryCaptureVariable()13708 } while (!VarDC->Equals(DC)); in tryCaptureVariable()