Lines Matching defs:SemaRef
3612 void ASTWriter::WriteSelectors(Sema &SemaRef) {
3616 if (SemaRef.ObjC().MethodPool.empty() && SelectorIDs.empty())
3631 SemaRef.ObjC().MethodPool.find(S);
3637 if (F != SemaRef.ObjC().MethodPool.end()) {
3719 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) {
3722 if (SemaRef.ObjC().ReferencedSelectors.empty())
3726 ASTRecordWriter Writer(SemaRef.Context, *this, Record);
3731 for (auto &SelectorAndLocation : SemaRef.ObjC().ReferencedSelectors) {
4944 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) {
4945 if (!SemaRef.Context.getLangOpts().OpenCL)
4948 const OpenCLOptions &Opts = SemaRef.getOpenCLOptions();
4962 void ASTWriter::WriteCUDAPragmas(Sema &SemaRef) {
4963 if (SemaRef.CUDA().ForceHostDeviceDepth > 0) {
4964 RecordData::value_type Record[] = {SemaRef.CUDA().ForceHostDeviceDepth};
5021 void ASTWriter::WriteLateParsedTemplates(Sema &SemaRef) {
5022 Sema::LateParsedTemplateMapT &LPTMap = SemaRef.LateParsedTemplateMap;
5044 void ASTWriter::WriteOptimizePragmaOptions(Sema &SemaRef) {
5046 SourceLocation PragmaLoc = SemaRef.getOptimizeOffPragmaLocation();
5052 void ASTWriter::WriteMSStructPragmaOptions(Sema &SemaRef) {
5054 Record.push_back(SemaRef.MSStructPragmaOn ? PMSST_ON : PMSST_OFF);
5060 void ASTWriter::WriteMSPointersToMembersPragmaOptions(Sema &SemaRef) {
5062 Record.push_back(SemaRef.MSPointerToMemberRepresentationMethod);
5063 AddSourceLocation(SemaRef.ImplicitMSInheritanceAttrLoc, Record);
5068 void ASTWriter::WritePackPragmaOptions(Sema &SemaRef) {
5075 AddAlignPackInfo(SemaRef.AlignPackStack.CurrentValue, Record);
5076 AddSourceLocation(SemaRef.AlignPackStack.CurrentPragmaLocation, Record);
5077 Record.push_back(SemaRef.AlignPackStack.Stack.size());
5078 for (const auto &StackEntry : SemaRef.AlignPackStack.Stack) {
5088 void ASTWriter::WriteFloatControlPragmaOptions(Sema &SemaRef) {
5095 Record.push_back(SemaRef.FpPragmaStack.CurrentValue.getAsOpaqueInt());
5096 AddSourceLocation(SemaRef.FpPragmaStack.CurrentPragmaLocation, Record);
5097 Record.push_back(SemaRef.FpPragmaStack.Stack.size());
5098 for (const auto &StackEntry : SemaRef.FpPragmaStack.Stack) {
5108 void ASTWriter::WriteDeclsWithEffectsToVerify(Sema &SemaRef) {
5109 if (SemaRef.DeclsWithEffectsToVerify.empty())
5112 for (const auto *D : SemaRef.DeclsWithEffectsToVerify) {
5118 void ASTWriter::WriteModuleFileExtension(Sema &SemaRef,
5147 Writer.writeExtensionContents(SemaRef, Stream);
5512 void ASTWriter::PrepareWritingSpecialDecls(Sema &SemaRef) {
5513 ASTContext &Context = SemaRef.Context;
5596 AddLazyVectorDecls(*this, SemaRef.TentativeDefinitions);
5600 AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls);
5605 AddLazyVectorDecls(*this, SemaRef.DelegatingCtorDecls);
5608 AddLazyVectorDecls(*this, SemaRef.ExtVectorDecls);
5611 if (!SemaRef.VTableUses.empty())
5612 for (unsigned I = 0, N = SemaRef.VTableUses.size(); I != N; ++I)
5613 GetDeclRef(SemaRef.VTableUses[I].first);
5616 for (const TypedefNameDecl *TD : SemaRef.UnusedLocalTypedefNameCandidates)
5620 for (const auto &I : SemaRef.PendingInstantiations)
5622 assert(SemaRef.PendingLocalImplicitInstantiations.empty() &&
5626 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) {
5627 GetDeclRef(SemaRef.getStdNamespace());
5628 GetDeclRef(SemaRef.getStdBadAlloc());
5629 GetDeclRef(SemaRef.getStdAlignValT());
5636 for (const auto &I : SemaRef.KnownNamespaces)
5642 SemaRef.getUndefinedButUsed(Undefined);
5650 SemaRef.getMismatchingDeleteExpressions())
5664 for (const auto &ID : SemaRef.PP.getIdentifierTable()) {
5672 for (const Decl *D : SemaRef.IdResolver.decls(II))
5677 for (auto *D : SemaRef.DeclsToCheckForDeferredDiags)
5688 void ASTWriter::WriteSpecialDeclRecords(Sema &SemaRef) {
5689 ASTContext &Context = SemaRef.Context;
5702 AddLazyVectorEmiitedDecls(*this, SemaRef.TentativeDefinitions,
5710 AddLazyVectorEmiitedDecls(*this, SemaRef.UnusedFileScopedDecls,
5717 AddLazyVectorEmiitedDecls(*this, SemaRef.ExtVectorDecls, ExtVectorDecls);
5723 if (!SemaRef.VTableUses.empty()) {
5724 for (unsigned I = 0, N = SemaRef.VTableUses.size(); I != N; ++I) {
5725 CXXRecordDecl *D = SemaRef.VTableUses[I].first;
5730 AddSourceLocation(SemaRef.VTableUses[I].second, VTableUses);
5731 VTableUses.push_back(SemaRef.VTablesUsed[D]);
5738 for (const TypedefNameDecl *TD : SemaRef.UnusedLocalTypedefNameCandidates)
5746 for (const auto &I : SemaRef.PendingInstantiations) {
5758 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) {
5766 AddEmittedDeclRefOrZero(SemaRef.getStdNamespace());
5767 AddEmittedDeclRefOrZero(SemaRef.getStdBadAlloc());
5768 AddEmittedDeclRefOrZero(SemaRef.getStdAlignValT());
5775 for (auto *D : SemaRef.DeclsToCheckForDeferredDiags)
5793 AddLazyVectorEmiitedDecls(*this, SemaRef.DelegatingCtorDecls,
5800 for (const auto &I : SemaRef.KnownNamespaces) {
5810 SemaRef.getUndefinedButUsed(Undefined);
5826 SemaRef.getMismatchingDeleteExpressions()) {