• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching defs:SemaRef

785 static bool isTagTypeWithMissingTag(Sema &SemaRef, LookupResult &Result,
789 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupTagName);
790 SemaRef.LookupParsedName(R, S, &SS);
816 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag)
817 << Name << TagName << SemaRef.getLangOpts().CPlusPlus
822 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
827 SemaRef.LookupParsedName(Result, S, &SS);
4676 static bool CheckAnonMemberRedeclaration(Sema &SemaRef,
4682 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupMemberName,
4684 if (!SemaRef.LookupName(R, S)) return false;
4690 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S))
4693 SemaRef.Diag(NameLoc, diag::err_anonymous_record_member_redecl)
4695 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
4717 InjectAnonymousStructOrUnionMembers(Sema &SemaRef, Scope *S, DeclContext *Owner,
4727 if (CheckAnonMemberRedeclaration(SemaRef, S, Owner, VD->getDeclName(),
4749 new (SemaRef.Context)NamedDecl*[Chaining.size()];
4754 SemaRef.Context, Owner, VD->getLocation(), VD->getIdentifier(),
4758 IndirectField->addAttr(Attr->clone(SemaRef.Context));
4762 SemaRef.PushOnScopeChains(IndirectField, S);
8053 Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD,
8065 LookupResult Prev(SemaRef, Name, NewFD->getLocation(),
8072 SemaRef.LookupName(Prev, S);
8074 SemaRef.LookupQualifiedName(Prev, NewDC);
8078 DifferentNameValidatorCCC CCC(SemaRef.Context, NewFD,
8085 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) {
8094 } else if ((Correction = SemaRef.CorrectTypo(
8108 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) {
8119 Sema::SFINAETrap Trap(SemaRef);
8124 Result = SemaRef.ActOnFunctionDeclarator(
8143 SemaRef.MarkTypoCorrectedFunctionDefinition(Result);
8144 SemaRef.diagnoseTypo(
8146 SemaRef.PDiag(IsLocalFriend
8161 SemaRef.Diag(NewFD->getLocation(), DiagMsg)
8181 SemaRef.Diag(Loc, IsMember ? diag::note_member_def_close_param_match
8186 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match)
8189 SemaRef.Diag(FD->getLocation(),
8196 static StorageClass getFunctionStorageClass(Sema &SemaRef, Declarator &D) {
8202 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(),
8213 if (SemaRef.CurContext->getRedeclContext()->isFunctionOrMethod()) {
8219 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(),
8232 static FunctionDecl *CreateNewFunctionDecl(Sema &SemaRef, Declarator &D,
8237 DeclarationNameInfo NameInfo = SemaRef.GetNameForDeclarator(D);
8243 if (!SemaRef.getLangOpts().CPlusPlus) {
8254 NewFD = FunctionDecl::Create(SemaRef.Context, DC, D.getBeginLoc(), NameInfo,
8268 SemaRef.Diag(D.getDeclSpec().getConstexprSpecLoc(),
8280 SemaRef.RequireNonAbstractType(
8282 diag::err_abstract_type_in_decl, SemaRef.AbstractReturnType))
8290 R = SemaRef.CheckConstructorDeclarator(D, R, SC);
8292 SemaRef.Context, cast<CXXRecordDecl>(DC), D.getBeginLoc(), NameInfo, R,
8300 R = SemaRef.CheckDestructorDeclarator(D, R, SC);
8303 SemaRef.Context, Record, D.getBeginLoc(), NameInfo, R, TInfo,
8310 if (SemaRef.getLangOpts().CPlusPlus11)
8311 SemaRef.AdjustDestructorExceptionSpec(NewDD);
8317 SemaRef.Diag(D.getIdentifierLoc(), diag::err_destructor_not_member);
8322 return FunctionDecl::Create(SemaRef.Context, DC, D.getBeginLoc(),
8331 SemaRef.Diag(D.getIdentifierLoc(),
8336 SemaRef.CheckConversionDeclarator(D, R, SC);
8342 SemaRef.Context, cast<CXXRecordDecl>(DC), D.getBeginLoc(), NameInfo, R,
8348 SemaRef.Diag(TrailingRequiresClause->getBeginLoc(),
8351 SemaRef.CheckDeductionGuideDeclarator(D, R, SC);
8353 return CXXDeductionGuideDecl::Create(SemaRef.Context, DC, D.getBeginLoc(),
8363 SemaRef.Diag(D.getIdentifierLoc(), diag::err_constructor_return_type)
8371 SemaRef.Context, cast<CXXRecordDecl>(DC), D.getBeginLoc(), NameInfo, R,
8378 SemaRef.getLangOpts().CPlusPlus && D.getDeclSpec().isFriendSpecified();
8379 if (!isFriend && SemaRef.CurContext->isRecord())
8385 return FunctionDecl::Create(SemaRef.Context, DC, D.getBeginLoc(), NameInfo,
14784 static FixItHint createFriendTagNNSFixIt(Sema &SemaRef, NamedDecl *ND, Scope *S,
14799 NamedDecl *Lookup = SemaRef.LookupSingleName(