Lines Matching refs:SemaRef
28 static bool IsProvablyNotDerivedFrom(Sema &SemaRef, in IsProvablyNotDerivedFrom() argument
40 CanQualType BaseT = SemaRef.Context.getCanonicalType((*I).getType()); in IsProvablyNotDerivedFrom()
45 if (!IsProvablyNotDerivedFrom(SemaRef, BaseRecord, Bases)) in IsProvablyNotDerivedFrom()
97 static IMAKind ClassifyImplicitMemberAccess(Sema &SemaRef, in ClassifyImplicitMemberAccess() argument
102 DeclContext *DC = SemaRef.getFunctionLevelDeclContext(); in ClassifyImplicitMemberAccess()
104 bool isStaticContext = SemaRef.CXXThisTypeOverride.isNull() && in ClassifyImplicitMemberAccess()
134 if (SemaRef.getLangOpts().CPlusPlus0x && isField) { in ClassifyImplicitMemberAccess()
142 = SemaRef.ExprEvalContexts.back(); in ClassifyImplicitMemberAccess()
180 if (IsProvablyNotDerivedFrom(SemaRef, contextClass, Classes)) in ClassifyImplicitMemberAccess()
189 static void diagnoseInstanceReference(Sema &SemaRef, in diagnoseInstanceReference() argument
197 DeclContext *FunctionLevelDC = SemaRef.getFunctionLevelDeclContext(); in diagnoseInstanceReference()
207 SemaRef.Diag(Loc, diag::err_invalid_member_use_in_static_method) in diagnoseInstanceReference()
213 SemaRef.Diag(Loc, diag::err_nested_non_static_member_use) in diagnoseInstanceReference()
216 SemaRef.Diag(Loc, diag::err_invalid_non_static_member_use) in diagnoseInstanceReference()
219 SemaRef.Diag(Loc, diag::err_member_call_without_object) in diagnoseInstanceReference()
481 static void DiagnoseQualifiedMemberReference(Sema &SemaRef, in DiagnoseQualifiedMemberReference() argument
490 return diagnoseInstanceReference(SemaRef, SS, rep, nameInfo); in DiagnoseQualifiedMemberReference()
492 SemaRef.Diag(nameInfo.getLoc(), diag::err_qualified_member_of_unrelated) in DiagnoseQualifiedMemberReference()
563 LookupMemberExprInRecord(Sema &SemaRef, LookupResult &R, in LookupMemberExprInRecord() argument
568 if (!SemaRef.isThisOutsideMemberFunctionBody(QualType(RTy, 0)) && in LookupMemberExprInRecord()
569 SemaRef.RequireCompleteType(OpLoc, QualType(RTy, 0), in LookupMemberExprInRecord()
579 SemaRef.LookupTemplateName(R, 0, SS, ObjectType, false, MOUS); in LookupMemberExprInRecord()
587 DC = SemaRef.computeDeclContext(SS, false); in LookupMemberExprInRecord()
589 if (SemaRef.RequireCompleteDeclContext(SS, DC)) { in LookupMemberExprInRecord()
590 SemaRef.Diag(SS.getRange().getEnd(), diag::err_typecheck_incomplete_tag) in LookupMemberExprInRecord()
598 SemaRef.Diag(R.getNameLoc(), diag::err_qualified_member_nonclass) in LookupMemberExprInRecord()
605 SemaRef.LookupQualifiedName(R, DC); in LookupMemberExprInRecord()
614 TypoCorrection Corrected = SemaRef.CorrectTypo(R.getLookupNameInfo(), in LookupMemberExprInRecord()
620 Corrected.getAsString(SemaRef.getLangOpts())); in LookupMemberExprInRecord()
622 Corrected.getQuoted(SemaRef.getLangOpts())); in LookupMemberExprInRecord()
625 SemaRef.Diag(R.getNameLoc(), diag::err_no_member_suggest) in LookupMemberExprInRecord()
628 SemaRef.Diag(ND->getLocation(), diag::note_previous_decl) in LookupMemberExprInRecord()
809 static MemberExpr *BuildMemberExpr(Sema &SemaRef, in BuildMemberExpr() argument
824 SemaRef.MarkMemberReferenced(E); in BuildMemberExpr()