Home | History | Annotate | Download | only in Serialization

Lines Matching defs:This

5 // This file is distributed under the University of Illinois Open Source
10 // This file defines the ASTReader class, which reads AST files.
134 // Do it the hard way. At this point, both vectors must be non-empty.
244 // exit this function.
284 // This is a macro definition. Determine the name of the macro we're
293 // Determine whether this macro was given a different definition on the
321 // Show the definition of this macro within the PCH file.
344 // Show the definition of this macro within the PCH file.
372 // This is an extra macro definition. Determine the name of the
381 // Check whether this name was used somewhere in the PCH file. If
389 // Add this definition to the suggested predefines buffer.
565 // If this identifier is a macro, deserialize the macro
572 // Determine whether this macro definition should be visible now, or
579 // The owning module is not visible, and this macro definition should
583 // Note that this macro definition was hidden because its owning
596 // Read all of the declarations visible at global scope with this
759 ASTDeclContextNameLookupTrait(*this, M));
895 /// This cache is very similar to the stat cache used by pretokenized
943 // the stream. This cursor will be used to read the contents of the
1111 // erroneously trigger this error-handling path.
1121 // This is the module's main file.
1257 // after reading this macro.
1339 // Remember that we saw this macro last so that we add the tokens that
1359 // erroneous, just pretend we didn't see this.
1441 // This HeaderFileInfo was externally loaded.
1449 // Note that this identifier has a macro definition.
1462 // If there was no preprocessor block, skip this file.
1542 IdentifierLookupVisitor *This
1545 // If we've already searched this module file, skip it now.
1546 if (M.Generation <= This->PriorGeneration)
1555 M, This->Found);
1557 std::pair<const char*, unsigned> Key(This->Name.begin(),
1558 This->Name.size());
1566 This->Found = *Pos;
1592 // Update the generation for this identifier.
1617 // If this is not a relocatable PCH file, there's nothing to do.
1685 PP.setExternalSource(this);
1709 PP.getPreprocessingRecord()->SetExternalSource(*this);
1799 // If we have to ignore the dependency, we'll have to ignore this too.
1818 // Introduce the global -> local mapping for types within this module.
1821 // Introduce the local -> global mapping for types within this module.
1842 // Introduce the global -> local mapping for declarations within this
1847 // Introduce the local -> global mapping for declarations within this
1852 // Introduce the global -> local mapping for declarations within this
1878 ASTDeclContextNameLookupTrait(*this, F));
1900 ASTIdentifierLookupTrait(*this, F));
1902 PP.getIdentifierTable().setExternalIdentifierLookup(this);
1917 // Introduce the global -> local mapping for identifiers within this
1922 // Introduce the local -> global mapping for identifiers within this
1968 // files. This isn't the way to do it :)
1995 // Introduce the global -> local mapping for selectors within this
1999 // Introduce the local -> global mapping for selectors within this
2017 ASTSelectorLookupTrait(*this, F));
2065 // This module. Base was 2 when being compiled.
2180 // FIXME: Modules will have some trouble with this. This is clearly not
2181 // the right way to do this.
2204 // FIXME: This is most certainly wrong for modules.
2215 // FIXME: Modules will have some trouble with this.
2260 PP.getPreprocessingRecord()->SetExternalSource(*this);
2268 // this module.
2272 // this module.
2345 // FIXME: Modules will have trouble with this.
2360 HeaderFileInfoTrait(*this, F,
2364 PP.getHeaderSearchInfo().SetExternalSource(this);
2366 PP.getHeaderSearchInfo().SetExternalLookup(this);
2489 // erroneously trigger this error-handling path.
2530 // This module already has this level of visibility (or greater), so
2543 // If we've already deserialized any names from this module,
2600 // Check whether this module meets one of the restrictions.
2669 DeserializationListener->ReaderInitialized(this);
2675 // If this AST file is a precompiled preamble, then set the preamble file ID
2714 // We've already loaded this module.
2718 // FIXME: This seems rather a hack. Should CurrentDir be part of the
2766 // FIXME: We could consider reading through to the end of this
2795 // Make sure that the files this module was built against are still available.
3117 // Retrieve this (sub)module from the module map, creating it if
3171 // FIXME: Be more lazy about this!
3215 // Introduce the global -> local mapping for submodules within this
3219 // Introduce the local -> global mapping for submodules within this
3296 /// This routine parses the language options from the AST file and then gives
3507 // is inside another macro argument), but for this case it is not important
3550 PPEntityComp<&PPEntityOffset::Begin>(*this, M));
3607 HeaderFileInfoVisitor *This
3610 HeaderFileInfoTrait Trait(This->Reader, M,
3611 &This->Reader.getPreprocessor().getHeaderSearchInfo(),
3613 This->FE->getName());
3620 // Look in the on-disk hash table for an entry for this file name.
3621 HeaderFileInfoLookupTable::iterator Pos = Table->find(This->FE->getName(),
3626 This->HFI = *Pos;
3635 HeaderFileInfoVisitor Visitor(*this, FE);
3665 break; // no more diag/map pairs for this location.
3685 /// The index is the type ID, shifted and minus the number of predefs. This
3694 // after reading this type.
3697 ReadingKindTracker ReadingKind(Read_Type, *this);
3700 Deserializing AType(this);
4053 const IdentifierInfo *Name = this->GetIdentifierInfo(*Loc.F, Record, Idx);
4064 const IdentifierInfo *Name = this->GetIdentifierInfo(*Loc.F, Record, Idx);
4366 TypeLocReader TLR(*this, F, Record, Idx);
4534 ReadingKindTracker ReadingKind(Read_Decl, *this);
4675 /// This operation will read a new statement from the external
4711 FindExternalLexicalDeclsVisitor *This
4715 = M.DeclContextInfos.find(This->DC);
4723 if (This->isKindWeWant && !This->isKindWeWant((Decl::Kind)ID->first))
4729 if (This->PredefsVisited[ID->second])
4732 This->PredefsVisited[ID->second] = true;
4735 if (Decl *D = This->Reader.GetLocalDecl(M, ID->second)) {
4736 if (!This->DC->isDeclInLexicalTraversal(D))
4737 This->Decls.push_back(D);
4751 FindExternalLexicalDeclsVisitor Visitor(*this, DC, isKindWeWant, Decls);
4807 DeclIDComp DIDComp(*this, *DInfo.Mod);
4851 DeclContextNameLookupVisitor *This
4855 // this context in this module.
4858 for (unsigned I = 0, N = This->Contexts.size(); I != N; ++I) {
4859 Info = M.DeclContextInfos.find(This->Contexts[I]);
4870 // Look for this name within this module.
4874 = LookupTable->find(This->Name);
4881 NamedDecl *ND = This->Reader.GetLocalDeclAs<NamedDecl>(M, *Data.first);
4885 if (ND->getDeclName() != This->Name) {
4886 assert(!This->Name.getCXXNameType().isNull() &&
4891 // Record this declaration.
4893 This->Decls.push_back(ND);
4928 DeclContextNameLookupVisitor Visitor(*this, Contexts, Name, Decls);
4952 DeclContextAllNamesVisitor *This
4956 // this context in this module.
4959 for (unsigned I = 0, N = This->Contexts.size(); I != N; ++I) {
4960 Info = M.DeclContextInfos.find(This->Contexts[I]);
4979 NamedDecl *ND = This->Reader.GetLocalDeclAs<NamedDecl>(M,
4984 // Record this declaration.
4986 This->Decls[ND->getDeclName()].push_back(ND);
5016 DeclContextAllNamesVisitor Visitor(*this, Contexts, Decls);
5028 /// before receiving the implementation, and codegen depends on this.
5029 /// We simulate this by deserializing and passing to consumer the methods of the
5060 this->Consumer = Consumer;
5066 // Force deserialization of this decl, which will cause it to be queued for
5202 S.ExternalSource = this;
5301 return new ASTIdentifierIterator(*this);
5318 ReadMethodPoolVisitor *This
5324 // If we've already searched this module file, skip it now.
5325 if (M.Generation <= This->PriorGeneration)
5330 ASTSelectorLookupTable::iterator Pos = PoolTable->find(This->Sel);
5334 ++This->Reader.NumSelectorsRead;
5336 // disable this tracking when called via LoadSelector.
5338 ++This->Reader.NumMethodPoolEntriesRead;
5340 if (This->Reader.DeserializationListener)
5341 This->Reader.DeserializationListener->SelectorRead(Data.ID,
5342 This->Sel);
5344 This->InstanceMethods.append(Data.Instance.begin(), Data.Instance.end());
5345 This->FactoryMethods.append(Data.Factory.begin(), Data.Factory.end());
5349 /// \brief Retrieve the instance methods found by this visitor.
5354 /// \brief Retrieve the instance methods found by this visitor.
5375 // Search for methods defined with this selector.
5376 ReadMethodPoolVisitor Visitor(*this, Sel, PriorGeneration);
5475 // If there are @selector references added them to its pool. This is for
5558 /// this call is non-recursive, and therefore the globally-visible declarations
5575 // Introduce this declaration into the translation-unit scope
5576 // and add it to the declaration chain for this identifier, so
5580 // Queue this declaration so that it will be added to the
5608 // unsigned integers. This is important to avoid integer overflow when
5683 // Load this selector from the selector table.
5687 ASTSelectorLookupTrait Trait(*this, M);
6227 assert(SwitchCaseStmts[ID] == 0 && "Already have a SwitchCase with this ID");
6233 assert(SwitchCaseStmts[ID] != 0 && "No SwitchCase with this ID");
6261 // that all redeclarations point to the definitions. Note that this can only
6345 : Listener(new PCHValidator(PP, *this)), DeserializationListener(0),
6364 SourceMgr.setExternalSLocEntrySource(this);