reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaExpr.cpp
16027   DeclContext *VarDC = Var->getDeclContext();
16028   if (Var->isInitCapture())
16051   bool IsGlobal = !Var->hasLocalStorage();
16053       !(LangOpts.OpenMP && isOpenMPCapturedDecl(Var, /*CheckScopeInfo=*/true,
16056   Var = Var->getCanonicalDecl();
16056   Var = Var->getCanonicalDecl();
16066   CaptureType = Var->getType();
16074     DeclContext *ParentDC = getParentOfCapturingContextOrNull(DC, Var,
16094     if (isVariableAlreadyCapturedInScopeInfo(CSI, Var, Nested, CaptureType,
16096       CSI->getCapture(Var).markUsed(BuildAndDiagnose);
16107           Diag(ExprLoc, diag::err_lambda_impcap) << Var->getDeclName();
16108           Diag(Var->getLocation(), diag::note_previous_decl)
16109              << Var->getDeclName();
16112           diagnoseUncapturableValueReference(*this, ExprLoc, Var, DC);
16118     if (Var->getType()->isVariablyModifiedType()) {
16121       QualType QTy = Var->getType();
16122       if (ParmVarDecl *PVD = dyn_cast_or_null<ParmVarDecl>(Var))
16133           bool IsOpenMPPrivateDecl = isOpenMPPrivateDecl(Var, RSI->OpenMPLevel);
16138           if (IsOpenMPPrivateDecl && Var->getType()->isVariablyModifiedType()) {
16139             QualType QTy = Var->getType();
16140             if (ParmVarDecl *PVD = dyn_cast_or_null<ParmVarDecl>(Var))
16153                              isOpenMPTargetCapturedDecl(Var, RSI->OpenMPLevel);
16173         Diag(ExprLoc, diag::err_lambda_impcap) << Var->getDeclName();
16174         Diag(Var->getLocation(), diag::note_previous_decl)
16175           << Var->getDeclName();
16214           !isVariableCapturable(CSI, Var, ExprLoc, BuildAndDiagnose, *this);
16222       Invalid = !captureInBlock(BSI, Var, ExprLoc, BuildAndDiagnose, CaptureType,
16226       Invalid = !captureInCapturedRegion(RSI, Var, ExprLoc, BuildAndDiagnose,
16233           !captureInLambda(LSI, Var, ExprLoc, BuildAndDiagnose, CaptureType,