Home | History | Annotate | Download | only in Sema

Lines Matching refs:SemaRef

517 static bool isTagTypeWithMissingTag(Sema &SemaRef, LookupResult &Result,
521 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupTagName);
522 SemaRef.LookupParsedName(R, S, &SS);
553 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag)
554 << Name << TagName << SemaRef.getLangOpts().CPlusPlus
559 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
564 SemaRef.LookupParsedName(Result, S, &SS);
3210 static bool CheckAnonMemberRedeclaration(Sema &SemaRef,
3216 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupMemberName,
3218 if (!SemaRef.LookupName(R, S)) return false;
3227 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S))
3230 SemaRef.Diag(NameLoc, diagnostic) << Name;
3231 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
3252 static bool InjectAnonymousStructOrUnionMembers(Sema &SemaRef, Scope *S,
3271 if (CheckAnonMemberRedeclaration(SemaRef, S, Owner, VD->getDeclName(),
3294 new (SemaRef.Context)NamedDecl*[Chaining.size()];
3299 IndirectFieldDecl::Create(SemaRef.Context, Owner, VD->getLocation(),
3305 SemaRef.PushOnScopeChains(IndirectField, S);
5416 Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD,
5421 LookupResult Prev(SemaRef, Name, NewFD->getLocation(),
5426 bool isFriendDecl = (SemaRef.getLangOpts().CPlusPlus &&
5432 SemaRef.LookupQualifiedName(Prev, NewDC);
5436 DifferentNameValidatorCCC Validator(SemaRef.Context, NewFD,
5443 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) {
5452 } else if ((Correction = SemaRef.CorrectTypo(Prev.getLookupNameInfo(),
5456 Sema::SFINAETrap Trap(SemaRef);
5468 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) {
5476 Result = SemaRef.ActOnFunctionDeclarator(
5515 SemaRef.Diag(NewFD->getLocStart(), DiagMsg)
5516 << Name << NewDC << Correction.getQuoted(SemaRef.getLangOpts())
5518 FixItLoc, Correction.getAsString(SemaRef.getLangOpts()));
5520 SemaRef.Diag(NewFD->getLocation(), DiagMsg)
5540 SemaRef.Diag(Loc, diag::note_member_def_close_param_match)
5543 SemaRef.Diag(FD->getLocation(), diag::note_previous_decl)
5544 << Correction.getQuoted(SemaRef.getLangOpts());
5546 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match)
5549 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_match);
5554 static FunctionDecl::StorageClass getFunctionStorageClass(Sema &SemaRef,
5561 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(),
5568 if (SemaRef.CurContext->getRedeclContext()->isFunctionOrMethod()) {
5574 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(),
5587 static FunctionDecl* CreateNewFunctionDecl(Sema &SemaRef, Declarator &D,
5592 DeclarationNameInfo NameInfo = SemaRef.GetNameForDeclarator(D);
5601 if (!SemaRef.getLangOpts().CPlusPlus) {
5611 NewFD = FunctionDecl::Create(SemaRef.Context, DC,
5619 NewFD->setLexicalDeclContext(SemaRef.CurContext);
5631 SemaRef.RequireNonAbstractType(D.getIdentifierLoc(),
5634 SemaRef.AbstractReturnType))
5642 R = SemaRef.CheckConstructorDeclarator(D, R, SC);
5643 return CXXConstructorDecl::Create(SemaRef.Context, cast<CXXRecordDecl>(DC),
5652 R = SemaRef.CheckDestructorDeclarator(D, R, SC);
5655 SemaRef.Context, Record,
5663 if (SemaRef.getLangOpts().CPlusPlus11 && !Record->isDependentType() &&
5666 SemaRef.AdjustDestructorExceptionSpec(Record, NewDD);
5673 SemaRef.Diag(D.getIdentifierLoc(), diag::err_destructor_not_member);
5678 return FunctionDecl::Create(SemaRef.Context, DC,
5687 SemaRef.Diag(D.getIdentifierLoc(),
5692 SemaRef.CheckConversionDeclarator(D, R, SC);
5694 return CXXConversionDecl::Create(SemaRef.Context, cast<CXXRecordDecl>(DC),
5706 SemaRef.Diag(D.getIdentifierLoc(), diag::err_constructor_return_type)
5730 return CXXMethodDecl::Create(SemaRef.Context, cast<CXXRecordDecl>(DC),
5739 return FunctionDecl::Create(SemaRef.Context, DC,