Home | History | Annotate | Download | only in Sema

Lines Matching refs:SemaRef

618 static bool isTagTypeWithMissingTag(Sema &SemaRef, LookupResult &Result,
622 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupTagName);
623 SemaRef.LookupParsedName(R, S, &SS);
649 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag)
650 << Name << TagName << SemaRef.getLangOpts().CPlusPlus
655 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
660 SemaRef.LookupParsedName(Result, S, &SS);
3540 static bool CheckAnonMemberRedeclaration(Sema &SemaRef,
3546 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupMemberName,
3548 if (!SemaRef.LookupName(R, S)) return false;
3557 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S))
3560 SemaRef.Diag(NameLoc, diagnostic) << Name;
3561 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
3582 static bool InjectAnonymousStructOrUnionMembers(Sema &SemaRef, Scope *S,
3599 if (CheckAnonMemberRedeclaration(SemaRef, S, Owner, VD->getDeclName(),
3621 new (SemaRef.Context)NamedDecl*[Chaining.size()];
3626 IndirectFieldDecl::Create(SemaRef.Context, Owner, VD->getLocation(),
3632 SemaRef.PushOnScopeChains(IndirectField, S);
6283 Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD,
6293 LookupResult Prev(SemaRef, Name, NewFD->getLocation(),
6300 SemaRef.LookupName(Prev, S);
6302 SemaRef.LookupQualifiedName(Prev, NewDC);
6306 DifferentNameValidatorCCC Validator(SemaRef.Context, NewFD,
6313 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) {
6322 } else if ((Correction = SemaRef.CorrectTypo(
6336 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) {
6347 Sema::SFINAETrap Trap(SemaRef);
6352 Result = SemaRef.ActOnFunctionDeclarator(
6370 SemaRef.diagnoseTypo(
6372 SemaRef.PDiag(IsLocalFriend
6387 SemaRef.Diag(NewFD->getLocation(), DiagMsg)
6407 SemaRef.Diag(Loc, IsMember ? diag::note_member_def_close_param_match
6412 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match)
6415 SemaRef.Diag(FD->getLocation(),
6422 static FunctionDecl::StorageClass getFunctionStorageClass(Sema &SemaRef,
6429 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(),
6439 if (SemaRef.CurContext->getRedeclContext()->isFunctionOrMethod()) {
6445 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(),
6458 static FunctionDecl* CreateNewFunctionDecl(Sema &SemaRef, Declarator &D,
6463 DeclarationNameInfo NameInfo = SemaRef.GetNameForDeclarator(D);
6469 if (!SemaRef.getLangOpts().CPlusPlus) {
6479 NewFD = FunctionDecl::Create(SemaRef.Context, DC,
6487 NewFD->setLexicalDeclContext(SemaRef.CurContext);
6499 SemaRef.RequireNonAbstractType(
6501 diag::err_abstract_type_in_decl, SemaRef.AbstractReturnType))
6509 R = SemaRef.CheckConstructorDeclarator(D, R, SC);
6510 return CXXConstructorDecl::Create(SemaRef.Context, cast<CXXRecordDecl>(DC),
6519 R = SemaRef.CheckDestructorDeclarator(D, R, SC);
6522 SemaRef.Context, Record,
6530 if (SemaRef.getLangOpts().CPlusPlus11 && !Record->isDependentType() &&
6533 SemaRef.AdjustDestructorExceptionSpec(Record, NewDD);
6540 SemaRef.Diag(D.getIdentifierLoc(), diag::err_destructor_not_member);
6545 return FunctionDecl::Create(SemaRef.Context, DC,
6554 SemaRef.Diag(D.getIdentifierLoc(),
6559 SemaRef.CheckConversionDeclarator(D, R, SC);
6561 return CXXConversionDecl::Create(SemaRef.Context, cast<CXXRecordDecl>(DC),
6573 SemaRef.Diag(D.getIdentifierLoc(), diag::err_constructor_return_type)
6580 CXXMethodDecl *Ret = CXXMethodDecl::Create(SemaRef.Context,
6591 return FunctionDecl::Create(SemaRef.Context, DC,