Lines Matching refs:RefExpr
70 DeclRefExpr *RefExpr;
73 : DKind(OMPD_unknown), CKind(OMPC_unknown), RefExpr(nullptr),
80 DeclRefExpr *RefExpr;
235 DVar.RefExpr = Iter->SharingMap[D].RefExpr;
280 DVar.RefExpr = nullptr;
319 Stack[0].SharingMap[D].RefExpr = E;
323 Stack.back().SharingMap[D].RefExpr = E;
357 DVar.RefExpr = Stack[0].SharingMap[D].RefExpr;
383 if (DVarTemp.CKind == OMPC_firstprivate && DVarTemp.RefExpr)
408 if (DVarTemp.CKind == OMPC_firstprivate && DVarTemp.RefExpr)
427 DVar.RefExpr = Stack.back().SharingMap[D].RefExpr;
726 for (auto &RefExpr : VarList) {
727 DeclRefExpr *DE = cast<DeclRefExpr>(RefExpr);
770 Vars.push_back(RefExpr);
785 if (DVar.RefExpr) {
786 SemaRef.Diag(DVar.RefExpr->getExprLoc(), diag::note_omp_explicit_dsa)
853 !Stack->isThreadPrivate(VD) && !DVar.RefExpr)
854 ImplicitFirstprivate.push_back(DVar.RefExpr);
884 ImplicitFirstprivate.push_back(DVar.RefExpr);
1663 (DVar.CKind != OMPC_private || DVar.RefExpr != nullptr)) {
2389 for (auto &RefExpr : VarList) {
2390 assert(RefExpr && "NULL expr in OpenMP private clause.");
2391 if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
2393 Vars.push_back(RefExpr);
2397 SourceLocation ELoc = RefExpr->getExprLoc();
2403 DeclRefExpr *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr);
2405 Diag(ELoc, diag::err_omp_expected_var_name) << RefExpr->getSourceRange();
2520 for (auto &RefExpr : VarList) {
2521 assert(RefExpr && "NULL expr in OpenMP firstprivate clause.");
2522 if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
2524 Vars.push_back(RefExpr);
2528 SourceLocation ELoc = RefExpr->getExprLoc();
2534 DeclRefExpr *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr);
2536 Diag(ELoc, diag::err_omp_expected_var_name) << RefExpr->getSourceRange();
2630 DVar.CKind != OMPC_lastprivate && DVar.RefExpr) {
2649 if (!(IsConstant || VD->isStaticDataMember()) && !DVar.RefExpr &&
2706 for (auto &RefExpr : VarList) {
2707 assert(RefExpr && "NULL expr in OpenMP lastprivate clause.");
2708 if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
2710 Vars.push_back(RefExpr);
2714 SourceLocation ELoc = RefExpr->getExprLoc();
2720 DeclRefExpr *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr);
2722 Diag(ELoc, diag::err_omp_expected_var_name) << RefExpr->getSourceRange();
2761 (DVar.CKind != OMPC_private || DVar.RefExpr != nullptr)) {
2861 for (auto &RefExpr : VarList) {
2862 assert(RefExpr && "NULL expr in OpenMP shared clause.");
2863 if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
2865 Vars.push_back(RefExpr);
2869 SourceLocation ELoc = RefExpr->getExprLoc();
2876 DeclRefExpr *DE = dyn_cast<DeclRefExpr>(RefExpr);
2878 Diag(ELoc, diag::err_omp_expected_var_name) << RefExpr->getSourceRange();
2900 DVar.RefExpr) {
2925 if (DVar.CKind == OMPC_shared && !DVar.RefExpr)
3015 for (auto RefExpr : VarList) {
3016 assert(RefExpr && "nullptr expr in OpenMP reduction clause.");
3017 if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
3019 Vars.push_back(RefExpr);
3023 if (RefExpr->isTypeDependent() || RefExpr->isValueDependent() ||
3024 RefExpr->isInstantiationDependent() ||
3025 RefExpr->containsUnexpandedParameterPack()) {
3027 Vars.push_back(RefExpr);
3031 auto ELoc = RefExpr->getExprLoc();
3032 auto ERange = RefExpr->getSourceRange();
3040 auto DE = dyn_cast<DeclRefExpr>(RefExpr);
3124 RefExpr, RefExpr);
3152 if (DVar.RefExpr) {
3153 Diag(DVar.RefExpr->getExprLoc(), diag::note_omp_referenced);
3244 for (auto &RefExpr : VarList) {
3245 assert(RefExpr && "NULL expr in OpenMP linear clause.");
3246 if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
3248 Vars.push_back(RefExpr);
3260 SourceLocation ELoc = RefExpr->getExprLoc();
3266 DeclRefExpr *DE = dyn_cast<DeclRefExpr>(RefExpr);
3268 Diag(ELoc, diag::err_omp_expected_var_name) << RefExpr->getSourceRange();
3279 if (DVar.RefExpr) {
3370 for (auto &RefExpr : VarList) {
3371 assert(RefExpr && "NULL expr in OpenMP aligned clause.");
3372 if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
3374 Vars.push_back(RefExpr);
3378 SourceLocation ELoc = RefExpr->getExprLoc();
3381 DeclRefExpr *DE = dyn_cast<DeclRefExpr>(RefExpr);
3383 Diag(ELoc, diag::err_omp_expected_var_name) << RefExpr->getSourceRange();
3400 << QType << getLangOpts().CPlusPlus << RefExpr->getSourceRange();
3412 Diag(ELoc, diag::err_omp_aligned_twice) << RefExpr->getSourceRange();
3445 for (auto &RefExpr : VarList) {
3446 assert(RefExpr && "NULL expr in OpenMP copyin clause.");
3447 if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
3449 Vars.push_back(RefExpr);
3453 SourceLocation ELoc = RefExpr->getExprLoc();
3458 DeclRefExpr *DE = dyn_cast<DeclRefExpr>(RefExpr);
3460 Diag(ELoc, diag::err_omp_expected_var_name) << RefExpr->getSourceRange();
3528 for (auto &RefExpr : VarList) {
3529 assert(RefExpr && "NULL expr in OpenMP copyprivate clause.");
3530 if (isa<DependentScopeDeclRefExpr>(RefExpr)) {
3532 Vars.push_back(RefExpr);
3536 SourceLocation ELoc = RefExpr->getExprLoc();
3541 DeclRefExpr *DE = dyn_cast<DeclRefExpr>(RefExpr);
3543 Diag(ELoc, diag::err_omp_expected_var_name) << RefExpr->getSourceRange();
3563 !(DVar.CKind == OMPC_private && !DVar.RefExpr)) {