Searched refs:VarDC (Results 1 – 2 of 2) 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()
17030 DeclContext *VarDC = var->getDeclContext(); in diagnoseUncapturableValueReference() local17036 isa<TranslationUnitDecl>(VarDC)) in diagnoseUncapturableValueReference()17051 if (isa<CXXMethodDecl>(VarDC) && in diagnoseUncapturableValueReference()17052 cast<CXXRecordDecl>(VarDC->getParent())->isLambda()) { in diagnoseUncapturableValueReference()17054 } else if (isa<FunctionDecl>(VarDC)) { in diagnoseUncapturableValueReference()17056 } else if (isa<BlockDecl>(VarDC)) { in diagnoseUncapturableValueReference()17061 << var << ValueKind << ContextKind << VarDC; in diagnoseUncapturableValueReference()17397 DeclContext *VarDC = Var->getDeclContext(); in tryCaptureVariable() local17399 VarDC = VarDC->getParent(); in tryCaptureVariable()17417 if (VarDC == DC) return true; in tryCaptureVariable()[all …]