Lines Matching defs:SemaRef

3559 void ASTWriter::WriteSelectors(Sema &SemaRef) {
3563 if (SemaRef.ObjC().MethodPool.empty() && SelectorIDs.empty())
3578 SemaRef.ObjC().MethodPool.find(S);
3584 if (F != SemaRef.ObjC().MethodPool.end()) {
3666 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) {
3669 if (SemaRef.ObjC().ReferencedSelectors.empty())
3678 for (auto &SelectorAndLocation : SemaRef.ObjC().ReferencedSelectors) {
4475 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) {
4476 if (!SemaRef.Context.getLangOpts().OpenCL)
4479 const OpenCLOptions &Opts = SemaRef.getOpenCLOptions();
4493 void ASTWriter::WriteCUDAPragmas(Sema &SemaRef) {
4494 if (SemaRef.CUDA().ForceHostDeviceDepth > 0) {
4495 RecordData::value_type Record[] = {SemaRef.CUDA().ForceHostDeviceDepth};
4552 void ASTWriter::WriteLateParsedTemplates(Sema &SemaRef) {
4553 Sema::LateParsedTemplateMapT &LPTMap = SemaRef.LateParsedTemplateMap;
4575 void ASTWriter::WriteOptimizePragmaOptions(Sema &SemaRef) {
4577 SourceLocation PragmaLoc = SemaRef.getOptimizeOffPragmaLocation();
4583 void ASTWriter::WriteMSStructPragmaOptions(Sema &SemaRef) {
4585 Record.push_back(SemaRef.MSStructPragmaOn ? PMSST_ON : PMSST_OFF);
4591 void ASTWriter::WriteMSPointersToMembersPragmaOptions(Sema &SemaRef) {
4593 Record.push_back(SemaRef.MSPointerToMemberRepresentationMethod);
4594 AddSourceLocation(SemaRef.ImplicitMSInheritanceAttrLoc, Record);
4599 void ASTWriter::WritePackPragmaOptions(Sema &SemaRef) {
4606 AddAlignPackInfo(SemaRef.AlignPackStack.CurrentValue, Record);
4607 AddSourceLocation(SemaRef.AlignPackStack.CurrentPragmaLocation, Record);
4608 Record.push_back(SemaRef.AlignPackStack.Stack.size());
4609 for (const auto &StackEntry : SemaRef.AlignPackStack.Stack) {
4619 void ASTWriter::WriteFloatControlPragmaOptions(Sema &SemaRef) {
4626 Record.push_back(SemaRef.FpPragmaStack.CurrentValue.getAsOpaqueInt());
4627 AddSourceLocation(SemaRef.FpPragmaStack.CurrentPragmaLocation, Record);
4628 Record.push_back(SemaRef.FpPragmaStack.Stack.size());
4629 for (const auto &StackEntry : SemaRef.FpPragmaStack.Stack) {
4638 void ASTWriter::WriteModuleFileExtension(Sema &SemaRef,
4667 Writer.writeExtensionContents(SemaRef, Stream);
4862 ASTFileSignature ASTWriter::WriteAST(Sema &SemaRef, StringRef OutputFile,
4869 SemaRef.PP.getDiagnostics().hasUncompilableErrorOccurred();
4879 Context = &SemaRef.Context;
4880 PP = &SemaRef.PP;
4882 ASTFileSignature Signature = WriteASTCore(SemaRef, isysroot, WritingModule);
5008 void ASTWriter::PrepareWritingSpecialDecls(Sema &SemaRef) {
5009 ASTContext &Context = SemaRef.Context;
5091 AddLazyVectorDecls(*this, SemaRef.TentativeDefinitions);
5095 AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls);
5100 AddLazyVectorDecls(*this, SemaRef.DelegatingCtorDecls);
5103 AddLazyVectorDecls(*this, SemaRef.ExtVectorDecls);
5106 if (!SemaRef.VTableUses.empty())
5107 for (unsigned I = 0, N = SemaRef.VTableUses.size(); I != N; ++I)
5108 GetDeclRef(SemaRef.VTableUses[I].first);
5111 for (const TypedefNameDecl *TD : SemaRef.UnusedLocalTypedefNameCandidates)
5115 for (const auto &I : SemaRef.PendingInstantiations)
5117 assert(SemaRef.PendingLocalImplicitInstantiations.empty() &&
5121 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) {
5122 GetDeclRef(SemaRef.getStdNamespace());
5123 GetDeclRef(SemaRef.getStdBadAlloc());
5124 GetDeclRef(SemaRef.getStdAlignValT());
5131 for (const auto &I : SemaRef.KnownNamespaces)
5137 SemaRef.getUndefinedButUsed(Undefined);
5145 SemaRef.getMismatchingDeleteExpressions())
5159 for (const auto &ID : SemaRef.PP.getIdentifierTable()) {
5167 for (const Decl *D : SemaRef.IdResolver.decls(II))
5172 for (auto *D : SemaRef.DeclsToCheckForDeferredDiags)
5183 void ASTWriter::WriteSpecialDeclRecords(Sema &SemaRef) {
5184 ASTContext &Context = SemaRef.Context;
5197 AddLazyVectorEmiitedDecls(*this, SemaRef.TentativeDefinitions,
5205 AddLazyVectorEmiitedDecls(*this, SemaRef.UnusedFileScopedDecls,
5212 AddLazyVectorEmiitedDecls(*this, SemaRef.ExtVectorDecls, ExtVectorDecls);
5218 if (!SemaRef.VTableUses.empty()) {
5219 for (unsigned I = 0, N = SemaRef.VTableUses.size(); I != N; ++I) {
5220 CXXRecordDecl *D = SemaRef.VTableUses[I].first;
5225 AddSourceLocation(SemaRef.VTableUses[I].second, VTableUses);
5226 VTableUses.push_back(SemaRef.VTablesUsed[D]);
5233 for (const TypedefNameDecl *TD : SemaRef.UnusedLocalTypedefNameCandidates)
5241 for (const auto &I : SemaRef.PendingInstantiations) {
5253 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) {
5261 AddEmittedDeclRefOrZero(SemaRef.getStdNamespace());
5262 AddEmittedDeclRefOrZero(SemaRef.getStdBadAlloc());
5263 AddEmittedDeclRefOrZero(SemaRef.getStdAlignValT());
5270 for (auto *D : SemaRef.DeclsToCheckForDeferredDiags)
5288 AddLazyVectorEmiitedDecls(*this, SemaRef.DelegatingCtorDecls,
5295 for (const auto &I : SemaRef.KnownNamespaces) {
5305 SemaRef.getUndefinedButUsed(Undefined);
5321 SemaRef.getMismatchingDeleteExpressions()) {
5348 ASTFileSignature ASTWriter::WriteASTCore(Sema &SemaRef, StringRef isysroot,
5358 ASTContext &Context = SemaRef.Context;
5359 Preprocessor &PP = SemaRef.PP;
5404 SemaRef.WeakUndeclaredIdentifiers) {
5424 PrepareWritingSpecialDecls(SemaRef);
5453 SemaRef.ObjC().updateOutOfDateSelector(Selector);
5524 WriteSelectors(SemaRef);
5525 WriteReferencedSelectorsPool(SemaRef);
5526 WriteLateParsedTemplates(SemaRef);
5527 WriteIdentifierTable(PP, SemaRef.IdResolver, isModule);
5528 WriteFPPragmaOptions(SemaRef.CurFPFeatureOverrides());
5529 WriteOpenCLExtensions(SemaRef);
5530 WriteCUDAPragmas(SemaRef);
5538 WriteSpecialDeclRecords(SemaRef);
5587 WriteOptimizePragmaOptions(SemaRef);
5588 WriteMSStructPragmaOptions(SemaRef);
5589 WriteMSPointersToMembersPragmaOptions(SemaRef);
5591 WritePackPragmaOptions(SemaRef);
5592 WriteFloatControlPragmaOptions(SemaRef);
5604 WriteModuleFileExtension(SemaRef, *ExtWriter);