Lines Matching refs:SemaRef
105 SemaRef.getSourceManager().isInSystemHeader(loc)) { in checkInitMethod()
225 diagnoseNoescape(newDecl, oldDecl, SemaRef); in CheckObjCMethodOverride()
371 SemaRef.ImplicitlyRetainedSelfLocs.clear(); in ActOnStartOfObjCMethodDef()
372 assert((SemaRef.getCurMethodDecl() == nullptr) && "Methodparsing confused"); in ActOnStartOfObjCMethodDef()
375 SemaRef.PushExpressionEvaluationContext( in ActOnStartOfObjCMethodDef()
376 SemaRef.ExprEvalContexts.back().Context); in ActOnStartOfObjCMethodDef()
385 SemaRef.RequireCompleteType(MDecl->getLocation(), ResultType, in ActOnStartOfObjCMethodDef()
390 SemaRef.PushDeclContext(FnBodyScope, MDecl); in ActOnStartOfObjCMethodDef()
391 SemaRef.PushFunctionScope(); in ActOnStartOfObjCMethodDef()
399 SemaRef.PushOnScopeChains(MDecl->getSelfDecl(), FnBodyScope); in ActOnStartOfObjCMethodDef()
400 SemaRef.PushOnScopeChains(MDecl->getCmdDecl(), FnBodyScope); in ActOnStartOfObjCMethodDef()
403 SemaRef.CheckParmsForFunctionDef(MDecl->parameters(), in ActOnStartOfObjCMethodDef()
409 !HasExplicitOwnershipAttr(SemaRef, Param)) in ActOnStartOfObjCMethodDef()
414 SemaRef.PushOnScopeChains(Param, FnBodyScope); in ActOnStartOfObjCMethodDef()
467 DiagnoseObjCImplementedDeprecations(SemaRef, IMD, MDecl->getLocation()); in ActOnStartOfObjCMethodDef()
472 SemaRef.getCurFunction()->ObjCIsDesignatedInit = true; in ActOnStartOfObjCMethodDef()
473 SemaRef.getCurFunction()->ObjCWarnForNoDesignatedInitChain = in ActOnStartOfObjCMethodDef()
476 SemaRef.getCurFunction()->ObjCIsSecondaryInit = true; in ActOnStartOfObjCMethodDef()
477 SemaRef.getCurFunction()->ObjCWarnForNoInitDelegation = true; in ActOnStartOfObjCMethodDef()
490 SemaRef.getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
494 SemaRef.getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
500 SemaRef.getCurFunction()->ObjCShouldCallSuper = in ActOnStartOfObjCMethodDef()
508 SemaRef.applyFunctionAttributesBeforeParsingBody(D); in ActOnStartOfObjCMethodDef()
560 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in ActOnSuperClassOfClassInterface()
561 SemaRef.TUScope, SuperName, SuperLoc, Sema::LookupOrdinaryName); in ActOnSuperClassOfClassInterface()
567 if (TypoCorrection Corrected = SemaRef.CorrectTypo( in ActOnSuperClassOfClassInterface()
569 SemaRef.TUScope, nullptr, CCC, Sema::CTK_ErrorRecovery)) { in ActOnSuperClassOfClassInterface()
570 SemaRef.diagnoseTypo(Corrected, PDiag(diag::err_undef_superclass_suggest) in ActOnSuperClassOfClassInterface()
587 (void)SemaRef.DiagnoseUseOfDecl(SuperClassDecl, SuperLoc); in ActOnSuperClassOfClassInterface()
606 (void)SemaRef.DiagnoseUseOfDecl( in ActOnSuperClassOfClassInterface()
627 else if (SemaRef.RequireCompleteType( in ActOnSuperClassOfClassInterface()
645 S, SuperLoc, SemaRef.CreateParsedType(SuperClassType, nullptr), in ActOnSuperClassOfClassInterface()
653 SemaRef.GetTypeFromParser(fullSuperClassType.get(), &SuperClassTInfo); in ActOnSuperClassOfClassInterface()
676 SemaRef.GetTypeFromParser(parsedTypeBound, &typeBoundInfo); in actOnObjCTypeParam()
683 SemaRef.getLocForEndOfToken(typeBoundInfo->getTypeLoc().getEndLoc()); in actOnObjCTypeParam()
763 return ObjCTypeParamDecl::Create(Context, SemaRef.CurContext, variance, in actOnObjCTypeParam()
796 SemaRef.PushOnScopeChains(typeParam, S, /*AddToContext=*/false); in actOnObjCTypeParamList()
809 SemaRef.IdResolver.RemoveDecl(typeParam); in popObjCTypeParamList()
986 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in ActOnStartClassInterface()
987 SemaRef.TUScope, ClassName, ClassLoc, Sema::LookupOrdinaryName, in ActOnStartClassInterface()
988 SemaRef.forRedeclarationInCurContext()); in ActOnStartClassInterface()
1020 if (checkTypeParamListConsistency(SemaRef, prevTypeParamList, in ActOnStartClassInterface()
1035 Context, SemaRef.CurContext, typeParam->getVariance(), in ActOnStartClassInterface()
1051 ObjCInterfaceDecl::Create(Context, SemaRef.CurContext, AtInterfaceLoc, in ActOnStartClassInterface()
1056 if (SkipBody && !SemaRef.hasVisibleDefinition(Def)) { in ActOnStartClassInterface()
1069 SemaRef.ProcessDeclAttributeList(SemaRef.TUScope, IDecl, AttrList); in ActOnStartClassInterface()
1070 SemaRef.AddPragmaAttributes(SemaRef.TUScope, IDecl); in ActOnStartClassInterface()
1071 SemaRef.ProcessAPINotes(IDecl); in ActOnStartClassInterface()
1075 SemaRef.mergeDeclAttributes(IDecl, PrevIDecl); in ActOnStartClassInterface()
1077 SemaRef.PushOnScopeChains(IDecl, SemaRef.TUScope); in ActOnStartClassInterface()
1088 Sema::ContextRAII SavedContext(SemaRef, IDecl); in ActOnStartClassInterface()
1100 diagnoseUseOfProtocols(SemaRef, IDecl, (ObjCProtocolDecl *const *)ProtoRefs, in ActOnStartClassInterface()
1121 NamedDecl *IDecl = SemaRef.LookupSingleName( in ActOnTypedefedProtocols()
1122 SemaRef.TUScope, SuperName, SuperLoc, Sema::LookupOrdinaryName); in ActOnTypedefedProtocols()
1149 NamedDecl *ADecl = SemaRef.LookupSingleName( in ActOnCompatibilityAlias()
1150 SemaRef.TUScope, AliasName, AliasLocation, Sema::LookupOrdinaryName, in ActOnCompatibilityAlias()
1151 SemaRef.forRedeclarationInCurContext()); in ActOnCompatibilityAlias()
1158 NamedDecl *CDeclU = SemaRef.LookupSingleName( in ActOnCompatibilityAlias()
1159 SemaRef.TUScope, ClassName, ClassLocation, Sema::LookupOrdinaryName, in ActOnCompatibilityAlias()
1160 SemaRef.forRedeclarationInCurContext()); in ActOnCompatibilityAlias()
1167 CDeclU = SemaRef.LookupSingleName( in ActOnCompatibilityAlias()
1168 SemaRef.TUScope, ClassName, ClassLocation, Sema::LookupOrdinaryName, in ActOnCompatibilityAlias()
1169 SemaRef.forRedeclarationInCurContext()); in ActOnCompatibilityAlias()
1183 Context, SemaRef.CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
1186 SemaRef.PushOnScopeChains(AliasDecl, SemaRef.TUScope); in ActOnCompatibilityAlias()
1226 ProtocolName, ProtocolLoc, SemaRef.forRedeclarationInCurContext()); in ActOnStartProtocolInterface()
1233 PDecl = ObjCProtocolDecl::Create(Context, SemaRef.CurContext, ProtocolName, in ActOnStartProtocolInterface()
1237 if (SkipBody && !SemaRef.hasVisibleDefinition(Def)) { in ActOnStartProtocolInterface()
1250 SemaRef.PushOnScopeChains(PDecl, SemaRef.TUScope); in ActOnStartProtocolInterface()
1263 PDecl = ObjCProtocolDecl::Create(Context, SemaRef.CurContext, ProtocolName, in ActOnStartProtocolInterface()
1267 SemaRef.PushOnScopeChains(PDecl, SemaRef.TUScope); in ActOnStartProtocolInterface()
1271 SemaRef.ProcessDeclAttributeList(SemaRef.TUScope, PDecl, AttrList); in ActOnStartProtocolInterface()
1272 SemaRef.AddPragmaAttributes(SemaRef.TUScope, PDecl); in ActOnStartProtocolInterface()
1273 SemaRef.ProcessAPINotes(PDecl); in ActOnStartProtocolInterface()
1277 SemaRef.mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
1281 diagnoseUseOfProtocols(SemaRef, PDecl, (ObjCProtocolDecl *const *)ProtoRefs, in ActOnStartProtocolInterface()
1320 SemaRef.CorrectTypo(DeclarationNameInfo(Pair.first, Pair.second), in FindProtocolDeclaration()
1321 Sema::LookupObjCProtocolName, SemaRef.TUScope, in FindProtocolDeclaration()
1324 SemaRef.diagnoseTypo(Corrected, in FindProtocolDeclaration()
1340 (void)SemaRef.DiagnoseUseOfDecl(PDecl, Pair.second); in FindProtocolDeclaration()
1445 QualType base = SemaRef.GetTypeFromParser(baseType, nullptr); in actOnObjCTypeArgsOrProtocolQualifiers()
1468 (void)SemaRef.DiagnoseUseOfDecl(proto, identifierLocs[i]); in actOnObjCTypeArgsOrProtocolQualifiers()
1492 SemaRef.LookupSingleName(S, identifiers[i], identifierLocs[i], in actOnObjCTypeArgsOrProtocolQualifiers()
1526 SemaRef.getLocForEndOfToken(firstClassNameLoc), " *"); in actOnObjCTypeArgsOrProtocolQualifiers()
1555 NamedDecl *decl = SemaRef.LookupSingleName( in actOnObjCTypeArgsOrProtocolQualifiers()
1593 ParsedType parsedType = SemaRef.CreateParsedType(type, parsedTSInfo); in actOnObjCTypeArgsOrProtocolQualifiers()
1606 SourceLocation starLoc = SemaRef.getLocForEndOfToken(loc); in actOnObjCTypeArgsOrProtocolQualifiers()
1622 return SemaRef.ActOnTypeName(D); in actOnObjCTypeArgsOrProtocolQualifiers()
1699 TypoCorrection corrected = SemaRef.CorrectTypo( in actOnObjCTypeArgsOrProtocolQualifiers()
1705 SemaRef.diagnoseTypo(corrected, in actOnObjCTypeArgsOrProtocolQualifiers()
1716 SemaRef.diagnoseTypo(corrected, in actOnObjCTypeArgsOrProtocolQualifiers()
1727 SemaRef.diagnoseTypo(corrected, in actOnObjCTypeArgsOrProtocolQualifiers()
1794 Ident, IdentPair.second, SemaRef.forRedeclarationInCurContext()); in ActOnForwardProtocolDeclaration()
1796 ObjCProtocolDecl::Create(Context, SemaRef.CurContext, Ident, in ActOnForwardProtocolDeclaration()
1799 SemaRef.PushOnScopeChains(PDecl, SemaRef.TUScope); in ActOnForwardProtocolDeclaration()
1802 SemaRef.ProcessDeclAttributeList(SemaRef.TUScope, PDecl, attrList); in ActOnForwardProtocolDeclaration()
1803 SemaRef.AddPragmaAttributes(SemaRef.TUScope, PDecl); in ActOnForwardProtocolDeclaration()
1806 SemaRef.mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
1811 return SemaRef.BuildDeclaratorGroup(DeclsInGroup); in ActOnForwardProtocolDeclaration()
1828 SemaRef.RequireCompleteType(ClassLoc, Context.getObjCInterfaceType(IDecl), in ActOnStartCategoryInterface()
1834 CDecl = ObjCCategoryDecl::Create(Context, SemaRef.CurContext, in ActOnStartCategoryInterface()
1838 SemaRef.CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1867 SemaRef, prevTypeParamList, typeParamList, in ActOnStartCategoryInterface()
1882 CDecl = ObjCCategoryDecl::Create(Context, SemaRef.CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
1886 SemaRef.CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1891 SemaRef.ProcessDeclAttributeList(SemaRef.TUScope, CDecl, AttrList); in ActOnStartCategoryInterface()
1892 SemaRef.AddPragmaAttributes(SemaRef.TUScope, CDecl); in ActOnStartCategoryInterface()
1895 diagnoseUseOfProtocols(SemaRef, CDecl, (ObjCProtocolDecl *const *)ProtoRefs, in ActOnStartCategoryInterface()
1926 ObjCCategoryDecl::Create(Context, SemaRef.CurContext, AtCatImplLoc, in ActOnStartCategoryImplementation()
1934 ObjCCategoryImplDecl::Create(Context, SemaRef.CurContext, CatName, IDecl, in ActOnStartCategoryImplementation()
1940 } else if (SemaRef.RequireCompleteType(ClassLoc, in ActOnStartCategoryImplementation()
1946 SemaRef.ProcessDeclAttributeList(SemaRef.TUScope, CDecl, Attrs); in ActOnStartCategoryImplementation()
1947 SemaRef.AddPragmaAttributes(SemaRef.TUScope, CDecl); in ActOnStartCategoryImplementation()
1950 SemaRef.CurContext->addDecl(CDecl); in ActOnStartCategoryImplementation()
1971 DiagnoseObjCImplementedDeprecations(SemaRef, CatIDecl, in ActOnStartCategoryImplementation()
1988 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in ActOnStartClassImplementation()
1989 SemaRef.TUScope, ClassName, ClassLoc, Sema::LookupOrdinaryName, in ActOnStartClassImplementation()
1990 SemaRef.forRedeclarationInCurContext()); in ActOnStartClassImplementation()
1997 SemaRef.RequireCompleteType(ClassLoc, Context.getObjCInterfaceType(IDecl), in ActOnStartClassImplementation()
2003 TypoCorrection Corrected = SemaRef.CorrectTypo( in ActOnStartClassImplementation()
2005 SemaRef.TUScope, nullptr, CCC, Sema::CTK_NonError); in ActOnStartClassImplementation()
2010 SemaRef.diagnoseTypo( in ActOnStartClassImplementation()
2023 SemaRef.LookupSingleName(SemaRef.TUScope, SuperClassname, SuperClassLoc, in ActOnStartClassImplementation()
2053 ObjCInterfaceDecl::Create(Context, SemaRef.CurContext, AtClassImplLoc, in ActOnStartClassImplementation()
2056 SemaRef.AddPragmaAttributes(SemaRef.TUScope, IDecl); in ActOnStartClassImplementation()
2067 SemaRef.PushOnScopeChains(IDecl, SemaRef.TUScope); in ActOnStartClassImplementation()
2077 ObjCImplementationDecl::Create(Context, SemaRef.CurContext, IDecl, SDecl, in ActOnStartClassImplementation()
2080 SemaRef.ProcessDeclAttributeList(SemaRef.TUScope, IMPDecl, Attrs); in ActOnStartClassImplementation()
2081 SemaRef.AddPragmaAttributes(SemaRef.TUScope, IMPDecl); in ActOnStartClassImplementation()
2097 SemaRef.PushOnScopeChains(IMPDecl, SemaRef.TUScope); in ActOnStartClassImplementation()
2100 DiagnoseObjCImplementedDeprecations(SemaRef, IDecl, IMPDecl->getLocation()); in ActOnStartClassImplementation()
2133 return SemaRef.BuildDeclaratorGroup(DeclsInGroup); in ActOnFinishObjCImplementation()
2590 checkMethodFamilyMismatch(SemaRef, ImpMethodDecl, MethodDecl)) in WarnConflictingTypedMethods()
2593 CheckMethodOverrideReturn(SemaRef, ImpMethodDecl, MethodDecl, in WarnConflictingTypedMethods()
2600 CheckMethodOverrideParam(SemaRef, ImpMethodDecl, MethodDecl, *IM, *IF, in WarnConflictingTypedMethods()
2615 CheckMethodOverrideReturn(SemaRef, Method, Overridden, IsProtocolMethodDecl, in CheckConflictingOverridingMethod()
2622 CheckMethodOverrideParam(SemaRef, Method, Overridden, *IM, *IF, in CheckConflictingOverridingMethod()
2651 bool match = CheckMethodOverrideReturn(SemaRef, ImpMethodDecl, MethodDecl, in WarnExactTypedMethods()
2658 match = CheckMethodOverrideParam(SemaRef, ImpMethodDecl, MethodDecl, *IM, in WarnExactTypedMethods()
2847 WarnUndefinedMethod(SemaRef, IMPDecl, I, IncompleteImpl, in MatchAllMethodDeclarations()
2877 WarnUndefinedMethod(SemaRef, IMPDecl, I, IncompleteImpl, in MatchAllMethodDeclarations()
3044 CheckProtocolMethodDefs(SemaRef, IMPDecl, PI, IncompleteImpl, InsMap, in ImplMethodsVsClassMethods()
3051 CheckProtocolMethodDefs(SemaRef, IMPDecl, P, IncompleteImpl, InsMap, in ImplMethodsVsClassMethods()
3068 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in ActOnForwardClassDeclaration()
3069 SemaRef.TUScope, IdentList[i], IdentLocs[i], Sema::LookupOrdinaryName, in ActOnForwardClassDeclaration()
3070 SemaRef.forRedeclarationInCurContext()); in ActOnForwardClassDeclaration()
3125 SemaRef, PrevTypeParams, TypeParams, in ActOnForwardClassDeclaration()
3142 Context, SemaRef.CurContext, AtClassLoc, ClassName, TypeParams, in ActOnForwardClassDeclaration()
3147 SemaRef.mergeDeclAttributes(IDecl, PrevIDecl); in ActOnForwardClassDeclaration()
3149 SemaRef.PushOnScopeChains(IDecl, SemaRef.TUScope); in ActOnForwardClassDeclaration()
3154 return SemaRef.BuildDeclaratorGroup(DeclsInGroup); in ActOnForwardClassDeclaration()
3408 ObjCMethodList *Mem = SemaRef.BumpAlloc.Allocate<ObjCMethodList>(); in addMethodToGlobalList()
3425 assert(SemaRef.ExternalSource && "We need an external AST source"); in ReadMethodPool()
3426 SemaRef.ExternalSource->ReadMethodPool(Sel); in ReadMethodPool()
3430 if (!SemaRef.ExternalSource) in updateOutOfDateSelector()
3432 SemaRef.ExternalSource->updateOutOfDateSelector(Sel); in updateOutOfDateSelector()
3441 if (SemaRef.ExternalSource) in AddMethodToGlobalPool()
3517 if (SemaRef.ExternalSource) in CollectMultipleMethodsInGlobalPool()
3580 if (SemaRef.ExternalSource) in LookupMethodInGlobalPool()
3740 SemaRef, M->getMethod()->getSelector(), ObjectType)) in SelectorsForTypoCorrection()
3752 SemaRef, M->getMethod()->getSelector(), ObjectType)) in SelectorsForTypoCorrection()
3824 switch (SemaRef.CurContext->getDeclKind()) { in getObjCContainerKind()
3830 if (cast<ObjCCategoryDecl>(SemaRef.CurContext)->IsClassExtension()) in getObjCContainerKind()
3992 auto *OCD = cast<ObjCContainerDecl>(SemaRef.CurContext); in ActOnAtEnd()
4004 if (auto *OID = dyn_cast<ObjCImplementationDecl>(SemaRef.CurContext)) { in ActOnAtEnd()
4085 DiagnoseCategoryDirectMembersProtocolConformance(SemaRef, C, in ActOnAtEnd()
4132 DiagnoseWeakIvars(SemaRef, IC); in ActOnAtEnd()
4133 DiagnoseRetainableFlexibleArrayMember(SemaRef, IDecl); in ActOnAtEnd()
4141 SourceLocation SuperClassLoc(SemaRef.getLocForEndOfToken(DeclLoc)); in ActOnAtEnd()
4146 NamedDecl *IF = SemaRef.LookupSingleName( in ActOnAtEnd()
4147 SemaRef.TUScope, NSAPIObj->getNSClassId(NSAPI::ClassId_NSObject), in ActOnAtEnd()
4210 DiagnoseVariableSizedIvars(SemaRef, OCD); in ActOnAtEnd()
4228 SemaRef.Consumer.HandleTopLevelDeclInObjCContainer(DG); in ActOnAtEnd()
4231 SemaRef.ActOnDocumentableDecl(ClassDecl); in ActOnAtEnd()
4456 OverrideSearch overrides(SemaRef, ObjCMethod); in CheckObjCMethodOverrides()
4488 OverrideSearch overrides(SemaRef, overridden); in CheckObjCMethodOverrides()
4509 SemaRef.mergeObjCMethodDecls(ObjCMethod, overridden); in CheckObjCMethodOverrides()
4631 static void checkObjCMethodX86VectorTypes(Sema &SemaRef, in checkObjCMethodX86VectorTypes() argument
4633 assert(SemaRef.getASTContext().getTargetInfo().getTriple().getArch() == in checkObjCMethodX86VectorTypes()
4655 const auto &Triple = SemaRef.getASTContext().getTargetInfo().getTriple(); in checkObjCMethodX86VectorTypes()
4663 if (SemaRef.getASTContext().getTargetInfo().getPlatformMinVersion() >= in checkObjCMethodX86VectorTypes()
4666 SemaRef.Diag(Loc, diag::err_objc_method_unsupported_param_ret_type) in checkObjCMethodX86VectorTypes()
4740 if (!SemaRef.CurContext->isObjCContainer()) { in ActOnMethodDeclaration()
4745 Decl *ClassDecl = cast<ObjCContainerDecl>(SemaRef.CurContext); in ActOnMethodDeclaration()
4751 resultDeclType = SemaRef.GetTypeFromParser(ReturnType, &ReturnTInfo); in ActOnMethodDeclaration()
4753 if (SemaRef.CheckFunctionReturnType(resultDeclType, MethodLoc)) in ActOnMethodDeclaration()
4767 SemaRef.CurContext, MethodType == tok::minus, isVariadic, in ActOnMethodDeclaration()
4785 ArgType = SemaRef.GetTypeFromParser(ArgInfo[i].Type, &DI); in ActOnMethodDeclaration()
4788 LookupResult R(SemaRef, ArgInfo[i].Name, ArgInfo[i].NameLoc, in ActOnMethodDeclaration()
4790 SemaRef.forRedeclarationInCurContext()); in ActOnMethodDeclaration()
4791 SemaRef.LookupName(R, S); in ActOnMethodDeclaration()
4809 SemaRef.CheckParameter(ObjCMethod, StartLoc, ArgInfo[i].NameLoc, in ActOnMethodDeclaration()
4818 SemaRef.ProcessDeclAttributeList(SemaRef.TUScope, Param, in ActOnMethodDeclaration()
4820 SemaRef.AddPragmaAttributes(SemaRef.TUScope, Param); in ActOnMethodDeclaration()
4821 SemaRef.ProcessAPINotes(Param); in ActOnMethodDeclaration()
4828 SemaRef.IdResolver.AddDecl(Param); in ActOnMethodDeclaration()
4850 SemaRef.ProcessDeclAttributeList(SemaRef.TUScope, ObjCMethod, AttrList); in ActOnMethodDeclaration()
4851 SemaRef.AddPragmaAttributes(SemaRef.TUScope, ObjCMethod); in ActOnMethodDeclaration()
4852 SemaRef.ProcessAPINotes(ObjCMethod); in ActOnMethodDeclaration()
4906 mergeInterfaceMethodToImpl(SemaRef, ObjCMethod, IMD); in ActOnMethodDeclaration()
4966 mergeObjCDirectMembers(SemaRef, ClassDecl, ObjCMethod); in ActOnMethodDeclaration()
4967 checkObjCDirectMethodClashes(SemaRef, IDecl, ObjCMethod, ImpDecl); in ActOnMethodDeclaration()
4983 diagnoseNoescape(*NI, *OI, C, P, SemaRef); in ActOnMethodDeclaration()
4988 mergeObjCDirectMembers(SemaRef, ClassDecl, ObjCMethod); in ActOnMethodDeclaration()
4997 checkObjCDirectMethodClashes(SemaRef, IDecl, ObjCMethod); in ActOnMethodDeclaration()
5027 CheckRelatedResultTypeCompatibility(SemaRef, ObjCMethod, CurrentClass); in ActOnMethodDeclaration()
5072 checkObjCMethodX86VectorTypes(SemaRef, ObjCMethod); in ActOnMethodDeclaration()
5088 SemaRef.ActOnDocumentableDecl(ObjCMethod); in ActOnMethodDeclaration()
5096 if (isa<ObjCContainerDecl>(SemaRef.CurContext->getRedeclContext())) in CheckObjCDeclScope()
5102 SemaRef.getCurLexicalContext()->getRedeclContext())) in CheckObjCDeclScope()
5148 SemaRef.PushOnScopeChains(FD, S); in ActOnDefs()
5189 VarDecl *New = VarDecl::Create(Context, SemaRef.CurContext, StartLoc, IdLoc, in BuildObjCExceptionDecl()
5223 SemaRef.DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnObjCExceptionDecl()
5228 SemaRef.CheckExtraCXXDefaultArguments(D); in ActOnObjCExceptionDecl()
5230 TypeSourceInfo *TInfo = SemaRef.GetTypeForDeclarator(D); in ActOnObjCExceptionDecl()
5249 SemaRef.IdResolver.AddDecl(New); in ActOnObjCExceptionDecl()
5251 SemaRef.ProcessDeclAttributes(S, New, D); in ActOnObjCExceptionDecl()
5274 if (SemaRef.ExternalSource) { in DiagnoseUseOfUnimplementedSelectors()
5276 SemaRef.ExternalSource->ReadReferencedSelectors(Sels); in DiagnoseUseOfUnimplementedSelectors()
5376 UnusedBackingIvarChecker Checker(SemaRef, CurMethod, IV); in DiagnoseUnusedBackingIvarInAccessor()
5407 if (SemaRef.DelayedDiagnostics.shouldDelayDiagnostics()) in AdjustParameterTypeForObjCAutoRefCount()
5408 SemaRef.DelayedDiagnostics.add( in AdjustParameterTypeForObjCAutoRefCount()
5429 NamedDecl *IDecl = SemaRef.LookupSingleName(SemaRef.TUScope, Id, IdLoc, in getObjCInterfaceDecl()
5436 if (TypoCorrection C = SemaRef.CorrectTypo( in getObjCInterfaceDecl()
5438 SemaRef.TUScope, nullptr, CCC, Sema::CTK_ErrorRecovery)) { in getObjCInterfaceDecl()
5439 SemaRef.diagnoseTypo(C, PDiag(diag::err_undef_interface_suggest) << Id); in getObjCInterfaceDecl()
5496 return (dyn_cast_or_null<ObjCContainerDecl>(SemaRef.CurContext)); in getObjCDeclContext()
5519 InitializationSequence InitSeq(SemaRef, InitEntity, InitKind, in SetIvarInitializers()
5522 InitSeq.Perform(SemaRef, InitEntity, InitKind, std::nullopt); in SetIvarInitializers()
5523 MemberInit = SemaRef.MaybeCreateExprWithCleanups(MemberInit); in SetIvarInitializers()
5539 if (CXXDestructorDecl *Destructor = SemaRef.LookupDestructor(RD)) { in SetIvarInitializers()
5540 SemaRef.MarkFunctionReferenced(Field->getLocation(), Destructor); in SetIvarInitializers()
5541 SemaRef.CheckDestructorAccess( in SetIvarInitializers()
5584 TypeSourceInfo *TInfo = SemaRef.GetTypeForDeclarator(D); in ActOnIvar()
5590 SemaRef.VerifyBitField(Loc, II, T, /*IsMsStruct*/ false, BitWidth) in ActOnIvar()
5606 if (!SemaRef.tryToFixVariablyModifiedVarType( in ActOnIvar()
5617 cast<ObjCContainerDecl>(SemaRef.CurContext); in ActOnIvar()
5650 SemaRef.LookupSingleName(S, II, Loc, Sema::LookupMemberName, in ActOnIvar()
5652 if (PrevDecl && SemaRef.isDeclInScope(PrevDecl, EnclosingContext, S) && in ActOnIvar()
5661 SemaRef.ProcessDeclAttributes(S, NewID, D); in ActOnIvar()
5677 SemaRef.IdResolver.AddDecl(NewID); in ActOnIvar()