Home | History | Annotate | Download | only in Serialization

Lines Matching refs:ASTReader

1 //===-- ASTReader.cpp - AST File Reader ----------------------------------===//
10 // This file defines the ASTReader class, which reads AST files.
14 #include "clang/Serialization/ASTReader.h"
635 void ASTReader::setDeserializationListener(ASTDeserializationListener *Listener,
998 bool ASTReader::ReadDeclContextStorage(ModuleFile &M,
1042 void ASTReader::Error(StringRef Msg) {
1050 void ASTReader::Error(unsigned DiagID,
1064 bool ASTReader::ParseLineTable(ModuleFile &F,
1107 bool ASTReader::ReadSourceManagerBlock(ModuleFile &F) {
1195 bool ASTReader::ReadSLocEntry(int ID) {
1324 std::pair<SourceLocation, StringRef> ASTReader::getModuleImportLoc(int ID) {
1344 SourceLocation ASTReader::getImportLocation(ModuleFile *F) {
1361 bool ASTReader::ReadBlockAbbrevs(BitstreamCursor &Cursor, unsigned BlockID) {
1380 Token ASTReader::ReadToken(ModuleFile &F, const RecordDataImpl &Record,
1393 MacroInfo *ASTReader::ReadMacroRecord(ModuleFile &F, uint64_t Offset) {
1504 ASTReader::getGlobalPreprocessedEntityID(ModuleFile &M, unsigned LocalID) const {
1623 ASTReader::addPendingMacroFromModule(IdentifierInfo *II, ModuleFile *M,
1637 void ASTReader::addPendingMacroFromPCH(IdentifierInfo *II,
1644 void ASTReader::ReadDefinedMacros() {
1747 void ASTReader::updateOutOfDateIdentifier(IdentifierInfo &II) {
1772 void ASTReader::markIdentifierUpToDate(IdentifierInfo *II) {
1783 struct ASTReader::ModuleMacroInfo {
1809 ASTReader::ModuleMacroInfo *
1810 ASTReader::getModuleMacro(IdentifierInfo *II, const PendingMacroInfo &PMInfo) {
1843 void ASTReader::resolvePendingMacro(IdentifierInfo *II,
1870 void ASTReader::installPCHMacroDirectives(IdentifierInfo *II,
1948 Module *NewOwner, ASTReader &Reader) {
1963 void ASTReader::removeOverriddenMacros(IdentifierInfo *II,
1996 ASTReader::AmbiguousMacros *
1997 ASTReader::removeOverriddenMacros(IdentifierInfo *II,
2036 void ASTReader::installImportedMacro(IdentifierInfo *II, ModuleMacroInfo *MMI,
2113 ASTReader::InputFileInfo
2114 ASTReader::readInputFileInfo(ModuleFile &F, unsigned ID) {
2145 std::string ASTReader::getInputFileName(ModuleFile &F, unsigned int ID) {
2149 InputFile ASTReader::getInputFile(ModuleFile &F, unsigned ID, bool Complain) {
2281 void ASTReader::ResolveImportedPath(ModuleFile &M, std::string &Filename) {
2287 void ASTReader::ResolveImportedPath(std::string &Filename, StringRef Prefix) {
2296 ASTReader::ASTReadResult
2297 ASTReader::ReadControlBlock(ModuleFile &F,
2593 ASTReader::ASTReadResult
2594 ASTReader::ReadASTBlock(ModuleFile &F, unsigned ClientLoadCapabilities) {
3379 ASTReader::ASTReadResult
3380 ASTReader::ReadModuleMapFileBlock(RecordData &Record, ModuleFile &F,
3502 void ASTReader::makeNamesVisible(const HiddenNames &Names, Module *Owner,
3527 void ASTReader::makeModuleVisible(Module *Mod,
3592 bool ASTReader::loadGlobalIndex() {
3614 bool ASTReader::isGlobalIndexUnavailable() const {
3629 ASTReader::ASTReadResult ASTReader::ReadAST(const std::string &FileName,
3823 ASTReader::ASTReadResult
3824 ASTReader::ReadASTCore(StringRef FileName,
3959 void ASTReader::InitializeContext() {
4093 void ASTReader::finalizeForWriting() {
4144 ASTReader::RecordData Record;
4161 std::string ASTReader::getOriginalSourceFile(const std::string &ASTFileName,
4257 bool ASTReader::readASTFileControlBlock(StringRef Filename,
4451 bool ASTReader::isAcceptableASTFile(StringRef Filename,
4462 ASTReader::ASTReadResult
4463 ASTReader::ReadSubmoduleBlock(ModuleFile &F, unsigned ClientLoadCapabilities) {
4720 bool ASTReader::ParseLanguageOptions(const RecordData &Record,
4756 bool ASTReader::ParseTargetOptions(const RecordData &Record, bool Complain,
4775 bool ASTReader::ParseDiagnosticOptions(const RecordData &Record, bool Complain,
4792 bool ASTReader::ParseFileSystemOptions(const RecordData &Record, bool Complain,
4800 bool ASTReader::ParseHeaderSearchOptions(const RecordData &Record,
4840 bool ASTReader::ParsePreprocessorOptions(const RecordData &Record,
4876 ASTReader::getModulePreprocessedEntity(unsigned GlobalIndex) {
4887 ASTReader::getModulePreprocessedEntities(ModuleFile &Mod) const {
4896 llvm::iterator_range<ASTReader::ModuleDeclIterator>
4897 ASTReader::getModuleFileLevelDecls(ModuleFile &Mod) {
4904 PreprocessedEntity *ASTReader::ReadPreprocessedEntity(unsigned Index) {
4995 PreprocessedEntityID ASTReader::findNextPreprocessedEntity(
5012 const ASTReader &Reader;
5015 PPEntityComp(const ASTReader &Reader, ModuleFile &M) : Reader(Reader), M(M) { }
5040 PreprocessedEntityID ASTReader::findPreprocessedEntity(SourceLocation Loc,
5094 ASTReader::findPreprocessedEntitiesInRange(SourceRange Range) {
5107 Optional<bool> ASTReader::isPreprocessedEntityInFileID(unsigned Index,
5160 HeaderFileInfo ASTReader::GetHeaderFileInfo(const FileEntry *FE) {
5169 void ASTReader::ReadPragmaDiagnosticMappings(DiagnosticsEngine &Diag) {
5216 ASTReader::RecordLocation ASTReader::TypeCursorForIndex(unsigned Index) {
5229 QualType ASTReader::readTypeRecord(unsigned Index) {
5689 void ASTReader::readExceptionSpec(ModuleFile &ModuleFile,
5711 ASTReader &Reader;
5713 const ASTReader::RecordData &Record;
5716 SourceLocation ReadSourceLocation(const ASTReader::RecordData &R,
5722 T *ReadDeclAs(const ASTReader::RecordData &Record, unsigned &Idx) {
5727 TypeLocReader(ASTReader &Reader, ModuleFile &F,
5728 const ASTReader::RecordData &Record, unsigned &Idx)
5953 TypeSourceInfo *ASTReader::GetTypeSourceInfo(ModuleFile &F,
5967 QualType ASTReader::GetType(TypeID ID) {
6059 QualType ASTReader::getLocalType(ModuleFile &F, unsigned LocalID) {
6064 ASTReader::getGlobalTypeID(ModuleFile &F, unsigned LocalID) const {
6080 ASTReader::GetTemplateArgumentLocInfo(ModuleFile &F,
6116 ASTReader::ReadTemplateArgumentLoc(ModuleFile &F,
6129 ASTReader::ReadASTTemplateArgumentListInfo(ModuleFile &F,
6141 Decl *ASTReader::GetExternalDecl(uint32_t ID) {
6151 void ASTReader::CompleteRedeclChain(const Decl *D) {
6195 uint64_t ASTReader::ReadCXXCtorInitializersRef(ModuleFile &M,
6208 ASTReader::GetExternalCXXCtorInitializers(uint64_t Offset) {
6227 uint64_t ASTReader::readCXXBaseSpecifiers(ModuleFile &M,
6239 CXXBaseSpecifier *ASTReader::GetExternalCXXBaseSpecifiers(uint64_t Offset) {
6263 ASTReader::getGlobalDeclID(ModuleFile &F, LocalDeclID LocalID) const {
6274 bool ASTReader::isDeclIDFromModule(serialization::GlobalDeclID ID,
6285 ModuleFile *ASTReader::getOwningModuleFile(const Decl *D) {
6293 SourceLocation ASTReader::getSourceLocationForDeclID(GlobalDeclID ID) {
6350 Decl *ASTReader::GetExistingDecl(DeclID ID) {
6374 Decl *ASTReader::GetDecl(DeclID ID) {
6395 DeclID ASTReader::mapGlobalIDToModuleFileGlobalID(ModuleFile &M,
6412 serialization::DeclID ASTReader::ReadDeclID(ModuleFile &F,
6428 Stmt *ASTReader::GetExternalDeclStmt(uint64_t Offset) {
6440 ASTReader &Reader;
6448 FindExternalLexicalDeclsVisitor(ASTReader &Reader, const DeclContext *DC,
6496 ExternalLoadResult ASTReader::FindExternalLexicalDecls(const DeclContext *DC,
6510 ASTReader &Reader;
6514 DeclIDComp(ASTReader &Reader, ModuleFile &M) : Reader(Reader), Mod(M) {}
6540 void ASTReader::FindFileRegionDecls(FileID File,
6587 ASTReader &Reader;
6594 DeclContextNameLookupVisitor(ASTReader &Reader,
6672 ASTReader &Reader) {
6680 ASTReader::FindExternalVisibleDeclsByName(const DeclContext *DC,
6749 ASTReader &Reader;
6756 DeclContextAllNamesVisitor(ASTReader &Reader,
6807 void ASTReader::completeVisibleDeclsMap(const DeclContext *DC) {
6853 void ASTReader::PassInterestingDeclsToConsumer() {
6878 void ASTReader::PassInterestingDeclToConsumer(Decl *D) {
6885 void ASTReader::StartTranslationUnit(ASTConsumer *Consumer) {
6895 void ASTReader::PrintStats() {
7011 void ASTReader::dump() {
7033 void ASTReader::getMemoryBufferSizes(MemoryBufferSizes &sizes) const {
7050 void ASTReader::InitializeSema(Sema &S) {
7080 void ASTReader::UpdateSema() {
7102 IdentifierInfo* ASTReader::get(const char *NameStart, const char *NameEnd) {
7130 const ASTReader &Reader;
7145 explicit ASTIdentifierIterator(const ASTReader &Reader);
7151 ASTIdentifierIterator::ASTIdentifierIterator(const ASTReader &Reader)
7180 IdentifierIterator *ASTReader::getIdentifiers() {
7189 ASTReader &Reader;
7200 ReadMethodPoolVisitor(ASTReader &Reader, Selector Sel,
7271 void ASTReader::ReadMethodPool(Selector Sel) {
7307 void ASTReader::ReadKnownNamespaces(
7318 void ASTReader::ReadUndefinedButUsed(
7328 void ASTReader::ReadTentativeDefinitions(
7338 void ASTReader::ReadUnusedFileScopedDecls(
7349 void ASTReader::ReadDelegatingConstructors(
7360 void ASTReader::ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) {
7370 void ASTReader::ReadUnusedLocalTypedefNameCandidates(
7382 void ASTReader::ReadReferencedSelectors(
7400 void ASTReader::ReadWeakUndeclaredIdentifiers(
7420 void ASTReader::ReadUsedVTables(SmallVectorImpl<ExternalVTableUse> &VTables) {
7432 void ASTReader::ReadPendingInstantiations(
7444 void ASTReader::ReadLateParsedTemplates(
7467 void ASTReader::LoadSelector(Selector Sel) {
7472 void ASTReader::SetIdentifierInfo(IdentifierID ID, IdentifierInfo *II) {
7497 ASTReader::SetGloballyVisibleDecls(IdentifierInfo *II,
7529 IdentifierInfo *ASTReader::DecodeIdentifierInfo(IdentifierID ID) {
7563 IdentifierInfo *ASTReader::getLocalIdentifier(ModuleFile &M, unsigned LocalID) {
7567 IdentifierID ASTReader::getGlobalIdentifierID(ModuleFile &M, unsigned LocalID) {
7579 MacroInfo *ASTReader::getMacro(MacroID ID) {
7605 MacroID ASTReader::getGlobalMacroID(ModuleFile &M, unsigned LocalID) {
7617 ASTReader::getGlobalSubmoduleID(ModuleFile &M, unsigned LocalID) {
7629 Module *ASTReader::getSubmodule(SubmoduleID GlobalID) {
7643 Module *ASTReader::getModule(unsigned ID) {
7647 Selector ASTReader::getLocalSelector(ModuleFile &M, unsigned LocalID) {
7651 Selector ASTReader::DecodeSelector(serialization::SelectorID ID) {
7676 Selector ASTReader::GetExternalSelector(serialization::SelectorID ID) {
7680 uint32_t ASTReader::GetNumExternalSelectors() {
7686 ASTReader::getGlobalSelectorID(ModuleFile &M, unsigned LocalID) const {
7699 ASTReader::ReadDeclarationName(ModuleFile &F,
7738 void ASTReader::ReadDeclarationNameLoc(ModuleFile &F,
7770 void ASTReader::ReadDeclarationNameInfo(ModuleFile &F,
7780 void ASTReader::ReadQualifierInfo(ModuleFile &F, QualifierInfo &Info,
7793 ASTReader::ReadTemplateName(ModuleFile &F, const RecordData &Record,
7852 ASTReader::ReadTemplateArgument(ModuleFile &F,
7895 ASTReader::ReadTemplateParameterList(ModuleFile &F,
7914 ASTReader::
7925 void ASTReader::ReadUnresolvedSet(ModuleFile &F, LazyASTUnresolvedSet &Set,
7937 ASTReader::ReadCXXBaseSpecifier(ModuleFile &F,
7953 ASTReader::ReadCXXCtorInitializers(ModuleFile &F, const RecordData &Record,
8038 ASTReader::ReadNestedNameSpecifier(ModuleFile &F,
8093 ASTReader::ReadNestedNameSpecifierLoc(ModuleFile &F, const RecordData &Record,
8156 ASTReader::ReadSourceRange(ModuleFile &F, const RecordData &Record,
8164 llvm::APInt ASTReader::ReadAPInt(const RecordData &Record, unsigned &Idx) {
8173 llvm::APSInt ASTReader::ReadAPSInt(const RecordData &Record, unsigned &Idx) {
8179 llvm::APFloat ASTReader::ReadAPFloat(const RecordData &Record,
8186 std::string ASTReader::ReadString(const RecordData &Record, unsigned &Idx) {
8193 std::string ASTReader::ReadPath(ModuleFile &F, const RecordData &Record,
8200 VersionTuple ASTReader::ReadVersionTuple(const RecordData &Record,
8212 CXXTemporary *ASTReader::ReadCXXTemporary(ModuleFile &F,
8219 DiagnosticBuilder ASTReader::Diag(unsigned DiagID) {
8223 DiagnosticBuilder ASTReader::Diag(SourceLocation Loc, unsigned DiagID) {
8229 IdentifierTable &ASTReader::getIdentifierTable() {
8235 void ASTReader::RecordSwitchCaseID(SwitchCase *SC, unsigned ID) {
8242 SwitchCase *ASTReader::getSwitchCaseWithID(unsigned ID) {
8247 void ASTReader::ClearSwitchCaseIDs() {
8251 void ASTReader::ReadComments() {
8302 void ASTReader::getInputFiles(ModuleFile &F,
8310 std::string ASTReader::getOwningModuleNameForDiagnostic(const Decl *D) {
8323 void ASTReader::finishPendingActions() {
8485 void ASTReader::diagnoseOdrViolations() {
8633 void ASTReader::FinishedDeserializing() {
8664 void ASTReader::pushExternalDeclIntoScope(NamedDecl *D, DeclarationName Name) {
8690 ASTReader::ASTReader(Preprocessor &PP, ASTContext &Context, StringRef isysroot,
8718 ASTReader::~ASTReader() {