Home
last modified time | relevance | path

Searched refs:VarDC (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Sema/
DSemaExpr.cpp13136 DeclContext *VarDC = var->getDeclContext(); in diagnoseUncapturableValueReference() local
13142 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() local
13560 VarDC = VarDC->getParent(); in tryCaptureVariable()
13578 if (VarDC == DC) return true; in tryCaptureVariable()
13708 } while (!VarDC->Equals(DC)); in tryCaptureVariable()
/external/llvm-project/clang/lib/Sema/
DSemaExpr.cpp17030 DeclContext *VarDC = var->getDeclContext(); in diagnoseUncapturableValueReference() local
17036 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() local
17399 VarDC = VarDC->getParent(); in tryCaptureVariable()
17417 if (VarDC == DC) return true; in tryCaptureVariable()
[all …]