Lines Matching defs:SemaRef
109 Sema &SemaRef;
119 explicit DSAStackTy(Sema &S) : Stack(1), SemaRef(S) {}
391 bool IsConstant = Type.isConstant(SemaRef.getASTContext());
401 SemaRef.getLangOpts().CPlusPlus ? Type->getAsCXXRecordDecl() : nullptr;
403 !(SemaRef.getLangOpts().CPlusPlus && RD && RD->hasMutableFields())) {
543 Sema &SemaRef;
546 explicit VarDeclFilterCCC(Sema &S) : SemaRef(S) {}
551 SemaRef.isDeclInScope(ND, SemaRef.getCurLexicalContext(),
552 SemaRef.getCurScope());
696 Sema &SemaRef;
702 SemaRef.Diag(E->getLocStart(),
705 SemaRef.Diag(VD->getLocation(), diag::note_defined_here)
719 explicit LocalVarRefChecker(Sema &SemaRef) : SemaRef(SemaRef) {}
782 static void ReportOriginalDSA(Sema &SemaRef, DSAStackTy *Stack,
786 SemaRef.Diag(DVar.RefExpr->getExprLoc(), diag::note_omp_explicit_dsa)
815 else if (VD->getType().isConstant(SemaRef.getASTContext()))
822 SemaRef.Diag(VD->getLocation(), diag::note_omp_predetermined_dsa)
826 SemaRef.Diag(DVar.ImplicitDSALoc, diag::note_omp_implicit_dsa)
834 Sema &SemaRef;
876 SemaRef
877 ReportOriginalDSA(SemaRef, Stack, VD, DVar);
908 DSAAttrChecker(DSAStackTy *S, Sema &SemaRef, CapturedStmt *CS)
909 : Stack(S), SemaRef(SemaRef), ErrorFound(false), CS(CS) {}
995 bool CheckNestingOfRegions(Sema &SemaRef, DSAStackTy *Stack,
1082 SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region_simd);
1092 SemaRef.Diag(StartLoc, diag::err_omp_orphaned_section_directive)
1111 SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region)
1231 Sema &SemaRef;
1258 OpenMPIterationSpaceChecker(Sema &SemaRef, SourceLocation DefaultLoc)
1259 : SemaRef(SemaRef), DefaultLoc(DefaultLoc), ConditionLoc(DefaultLoc),
1335 SemaRef.PerformOpenMPImplicitIntegerConversion(StepLoc, NewStep);
1352 bool IsConstant = NewStep->isIntegerConstantExpr(Result, SemaRef.Context);
1360 SemaRef.Diag(NewStep->getExprLoc(),
1363 SemaRef.Diag(ConditionLoc,
1385 SemaRef.Diag(DefaultLoc, diag::err_omp_loop_not_canonical_init);
1400 SemaRef.Diag(S->getLocStart(),
1412 SemaRef.Diag(S->getLocStart(), diag::err_omp_loop_not_canonical_init)
1442 SemaRef.Diag(DefaultLoc, diag::err_omp_loop_not_canonical_cond) << Var;
1482 SemaRef.Diag(CondLoc, diag::err_omp_loop_not_canonical_cond)
1511 SemaRef.Diag(RHS->getLocStart(), diag::err_omp_loop_not_canonical_incr)
1531 SemaRef.Diag(DefaultLoc, diag::err_omp_loop_not_canonical_incr) << Var;
1538 SemaRef.ActOnIntegerConstant(UO->getLocStart(),
1561 SemaRef.ActOnIntegerConstant(
1579 SemaRef.Diag(S->getLocStart(), diag::err_omp_loop_not_canonical_incr)
1588 OpenMPDirectiveKind DKind, Stmt *S, Sema &SemaRef, DSAStackTy &DSA,
1596 SemaRef.Diag(S->getLocStart(), diag::err_omp_not_for)
1601 SemaRef.Diag(NestedLoopCountExpr->getExprLoc(),
1608 OpenMPIterationSpaceChecker ISC(SemaRef, For->getForLoc());
1629 !(SemaRef.getLangOpts().CPlusPlus && VarType->isOverloadableType())) {
1630 SemaRef.Diag(Init->getLocStart(), diag::err_omp_loop_variable_type)
1631 << SemaRef.getLangOpts().CPlusPlus;
1664 SemaRef.Diag(Init->getLocStart(), diag::err_omp_loop_var_dsa)
1667 ReportOriginalDSA(SemaRef, &DSA, Var, DVar, true);
1720 Stmt *AStmt, Sema &SemaRef, DSAStackTy &DSA,
1726 if (NestedLoopCountExpr->EvaluateAsInt(Result, SemaRef.getASTContext()))
1733 if (CheckOpenMPIterationSpace(DKind, CurStmt, SemaRef, DSA, Cnt,