• Home
  • Raw
  • Download

Lines Matching refs:SemaRef

32 static bool isProvablyNotDerivedFrom(Sema &SemaRef, CXXRecordDecl *Record,  in isProvablyNotDerivedFrom()  argument
88 static IMAKind ClassifyImplicitMemberAccess(Sema &SemaRef, in ClassifyImplicitMemberAccess() argument
92 DeclContext *DC = SemaRef.getFunctionLevelDeclContext(); in ClassifyImplicitMemberAccess()
94 bool isStaticContext = SemaRef.CXXThisTypeOverride.isNull() && in ClassifyImplicitMemberAccess()
134 switch (SemaRef.ExprEvalContexts.back().Context) { in ClassifyImplicitMemberAccess()
137 if (isField && SemaRef.getLangOpts().CPlusPlus11) in ClassifyImplicitMemberAccess()
187 if (isProvablyNotDerivedFrom(SemaRef, contextClass, Classes)) in ClassifyImplicitMemberAccess()
196 static void diagnoseInstanceReference(Sema &SemaRef, in diagnoseInstanceReference() argument
207 DeclContext *FunctionLevelDC = SemaRef.getFunctionLevelDeclContext(); in diagnoseInstanceReference()
217 SemaRef.Diag(Loc, diag::err_invalid_member_use_in_static_method) in diagnoseInstanceReference()
223 SemaRef.Diag(Loc, diag::err_nested_non_static_member_use) in diagnoseInstanceReference()
226 SemaRef.Diag(Loc, diag::err_invalid_non_static_member_use) in diagnoseInstanceReference()
229 SemaRef.Diag(Loc, diag::err_member_call_without_object) in diagnoseInstanceReference()
520 static void DiagnoseQualifiedMemberReference(Sema &SemaRef, in DiagnoseQualifiedMemberReference() argument
529 return diagnoseInstanceReference(SemaRef, SS, rep, nameInfo); in DiagnoseQualifiedMemberReference()
531 SemaRef.Diag(nameInfo.getLoc(), diag::err_qualified_member_of_unrelated) in DiagnoseQualifiedMemberReference()
639 static bool LookupMemberExprInRecord(Sema &SemaRef, LookupResult &R, in LookupMemberExprInRecord() argument
648 if (!SemaRef.isThisOutsideMemberFunctionBody(QualType(RTy, 0)) && in LookupMemberExprInRecord()
649 SemaRef.RequireCompleteType(OpLoc, QualType(RTy, 0), in LookupMemberExprInRecord()
659 return SemaRef.LookupTemplateName(R, nullptr, SS, ObjectType, false, MOUS, in LookupMemberExprInRecord()
667 DC = SemaRef.computeDeclContext(SS, false); in LookupMemberExprInRecord()
669 if (SemaRef.RequireCompleteDeclContext(SS, DC)) { in LookupMemberExprInRecord()
670 SemaRef.Diag(SS.getRange().getEnd(), diag::err_typecheck_incomplete_tag) in LookupMemberExprInRecord()
678 SemaRef.Diag(R.getNameLoc(), diag::err_qualified_member_nonclass) in LookupMemberExprInRecord()
685 SemaRef.LookupQualifiedName(R, DC, SS); in LookupMemberExprInRecord()
694 Sema &SemaRef; in LookupMemberExprInRecord() member
702 TE = SemaRef.CorrectTypoDelayed( in LookupMemberExprInRecord()
704 [=, &SemaRef](const TypoCorrection &TC) { in LookupMemberExprInRecord()
710 Typo.getAsString() == TC.getAsString(SemaRef.getLangOpts()); in LookupMemberExprInRecord()
711 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(diag::err_no_member_suggest) in LookupMemberExprInRecord()
715 SemaRef.Diag(TypoLoc, diag::err_no_member) << Typo << DC << BaseRange; in LookupMemberExprInRecord()
718 [=](Sema &SemaRef, TypoExpr *TE, TypoCorrection TC) mutable { in LookupMemberExprInRecord() argument
719 LookupResult R(Q.SemaRef, Q.NameInfo, Q.LookupKind, Q.Redecl); in LookupMemberExprInRecord()
726 return SemaRef.BuildMemberReferenceExpr( in LookupMemberExprInRecord()