Lines Matching defs:ASTReader

1 //===--- ASTReader.cpp - AST File Reader ----------------------------------===//
10 // This file defines the ASTReader class, which reads AST files.
14 #include "clang/Serialization/ASTReader.h"
391 ASTReader::setDeserializationListener(ASTDeserializationListener *Listener) {
718 bool ASTReader::ReadDeclContextStorage(ModuleFile &M,
762 void ASTReader::Error(StringRef Msg) {
770 void ASTReader::Error(unsigned DiagID,
784 bool ASTReader::ParseLineTable(ModuleFile &F,
830 bool ASTReader::ReadSourceManagerBlock(ModuleFile &F) {
918 bool ASTReader::ReadSLocEntry(int ID) {
1046 std::pair<SourceLocation, StringRef> ASTReader::getModuleImportLoc(int ID) {
1066 SourceLocation ASTReader::getImportLocation(ModuleFile *F) {
1087 bool ASTReader::ReadBlockAbbrevs(BitstreamCursor &Cursor, unsigned BlockID) {
1106 Token ASTReader::ReadToken(ModuleFile &F, const RecordDataImpl &Record,
1119 MacroInfo *ASTReader::ReadMacroRecord(ModuleFile &F, uint64_t Offset) {
1229 ASTReader::getGlobalPreprocessedEntityID(ModuleFile &M, unsigned LocalID) const {
1326 void ASTReader::addPendingMacroFromModule(IdentifierInfo *II,
1334 void ASTReader::addPendingMacroFromPCH(IdentifierInfo *II,
1341 void ASTReader::ReadDefinedMacros() {
1444 void ASTReader::updateOutOfDateIdentifier(IdentifierInfo &II) {
1469 void ASTReader::markIdentifierUpToDate(IdentifierInfo *II) {
1480 void ASTReader::resolvePendingMacro(IdentifierInfo *II,
1527 void ASTReader::installPCHMacroDirectives(IdentifierInfo *II,
1592 Module *NewOwner, ASTReader &Reader) {
1609 void ASTReader::installImportedMacro(IdentifierInfo *II, MacroDirective *MD,
1637 InputFile ASTReader::getInputFile(ModuleFile &F, unsigned ID, bool Complain) {
1749 const FileEntry *ASTReader::getFileEntry(StringRef filenameStrRef) {
1769 void ASTReader::MaybeAddSystemRootToFilename(ModuleFile &M,
1791 ASTReader::ASTReadResult
1792 ASTReader::ReadControlBlock(ModuleFile &F,
1993 bool ASTReader::ReadASTBlock(ModuleFile &F) {
2793 void ASTReader::makeNamesVisible(const HiddenNames &Names, Module *Owner) {
2817 void ASTReader::makeModuleVisible(Module *Mod,
2875 bool ASTReader::loadGlobalIndex() {
2897 bool ASTReader::isGlobalIndexUnavailable() const {
2902 ASTReader::ASTReadResult ASTReader::ReadAST(const std::string &FileName,
3063 ASTReader::ASTReadResult
3064 ASTReader::ReadASTCore(StringRef FileName,
3200 void ASTReader::InitializeContext() {
3337 void ASTReader::finalizeForWriting() {
3379 std::string ASTReader::getOriginalSourceFile(const std::string &ASTFileName,
3468 bool ASTReader::readASTFileControlBlock(StringRef Filename,
3612 bool ASTReader::isAcceptableASTFile(StringRef Filename,
3621 bool ASTReader::ReadSubmoduleBlock(ModuleFile &F) {
3966 bool ASTReader::ParseLanguageOptions(const RecordData &Record,
3999 bool ASTReader::ParseTargetOptions(const RecordData &Record,
4019 bool ASTReader::ParseDiagnosticOptions(const RecordData &Record, bool Complain,
4035 bool ASTReader::ParseFileSystemOptions(const RecordData &Record, bool Complain,
4043 bool ASTReader::ParseHeaderSearchOptions(const RecordData &Record,
4080 bool ASTReader::ParsePreprocessorOptions(const RecordData &Record,
4116 ASTReader::getModulePreprocessedEntity(unsigned GlobalIndex) {
4127 ASTReader::getModulePreprocessedEntities(ModuleFile &Mod) const {
4136 std::pair<ASTReader::ModuleDeclIterator, ASTReader::ModuleDeclIterator>
4137 ASTReader::getModuleFileLevelDecls(ModuleFile &Mod) {
4143 PreprocessedEntity *ASTReader::ReadPreprocessedEntity(unsigned Index) {
4234 PreprocessedEntityID ASTReader::findNextPreprocessedEntity(
4251 const ASTReader &Reader;
4254 PPEntityComp(const ASTReader &Reader, ModuleFile &M) : Reader(Reader), M(M) { }
4281 ASTReader::findBeginPreprocessedEntity(SourceLocation BLoc) const {
4329 ASTReader::findEndPreprocessedEntity(SourceLocation ELoc) const {
4359 ASTReader::findPreprocessedEntitiesInRange(SourceRange Range) {
4371 Optional<bool> ASTReader::isPreprocessedEntityInFileID(unsigned Index,
4424 HeaderFileInfo ASTReader::GetHeaderFileInfo(const FileEntry *FE) {
4433 void ASTReader::ReadPragmaDiagnosticMappings(DiagnosticsEngine &Diag) {
4480 ASTReader::RecordLocation ASTReader::TypeCursorForIndex(unsigned Index) {
4493 QualType ASTReader::readTypeRecord(unsigned Index) {
4946 ASTReader &Reader;
4948 const ASTReader::RecordData &Record;
4951 SourceLocation ReadSourceLocation(const ASTReader::RecordData &R,
4957 T *ReadDeclAs(const ASTReader::RecordData &Record, unsigned &Idx) {
4962 TypeLocReader(ASTReader &Reader, ModuleFile &F,
4963 const ASTReader::RecordData &Record, unsigned &Idx)
5185 TypeSourceInfo *ASTReader::GetTypeSourceInfo(ModuleFile &F,
5199 QualType ASTReader::GetType(TypeID ID) {
5291 QualType ASTReader::getLocalType(ModuleFile &F, unsigned LocalID) {
5296 ASTReader::getGlobalTypeID(ModuleFile &F, unsigned LocalID) const {
5312 ASTReader::GetTemplateArgumentLocInfo(ModuleFile &F,
5348 ASTReader::ReadTemplateArgumentLoc(ModuleFile &F,
5361 ASTReader::ReadASTTemplateArgumentListInfo(ModuleFile &F,
5373 Decl *ASTReader::GetExternalDecl(uint32_t ID) {
5377 uint64_t ASTReader::readCXXBaseSpecifiers(ModuleFile &M, const RecordData &Record,
5386 CXXBaseSpecifier *ASTReader::GetExternalCXXBaseSpecifiers(uint64_t Offset) {
5410 ASTReader::getGlobalDeclID(ModuleFile &F, LocalDeclID LocalID) const {
5421 bool ASTReader::isDeclIDFromModule(serialization::GlobalDeclID ID,
5428 ModuleFile *ASTReader::getOwningModuleFile(const Decl *D) {
5436 SourceLocation ASTReader::getSourceLocationForDeclID(GlobalDeclID ID) {
5455 Decl *ASTReader::GetDecl(DeclID ID) {
5507 DeclID ASTReader::mapGlobalIDToModuleFileGlobalID(ModuleFile &M,
5524 serialization::DeclID ASTReader::ReadDeclID(ModuleFile &F,
5540 Stmt *ASTReader::GetExternalDeclStmt(uint64_t Offset) {
5552 ASTReader &Reader;
5560 FindExternalLexicalDeclsVisitor(ASTReader &Reader, const DeclContext *DC,
5608 ExternalLoadResult ASTReader::FindExternalLexicalDecls(const DeclContext *DC,
5622 ASTReader &Reader;
5626 DeclIDComp(ASTReader &Reader, ModuleFile &M) : Reader(Reader), Mod(M) {}
5652 void ASTReader::FindFileRegionDecls(FileID File,
5699 ASTReader &Reader;
5705 DeclContextNameLookupVisitor(ASTReader &Reader,
5778 ASTReader &Reader) {
5786 ASTReader::FindExternalVisibleDeclsByName(const DeclContext *DC,
5831 ASTReader &Reader;
5837 DeclContextAllNamesVisitor(ASTReader &Reader,
5887 void ASTReader::completeVisibleDeclsMap(const DeclContext *DC) {
5934 void ASTReader::PassInterestingDeclsToConsumer() {
5944 void ASTReader::PassInterestingDeclToConsumer(Decl *D) {
5951 void ASTReader::StartTranslationUnit(ASTConsumer *Consumer) {
5967 void ASTReader::PrintStats() {
6083 void ASTReader::dump() {
6105 void ASTReader::getMemoryBufferSizes(MemoryBufferSizes &sizes) const {
6122 void ASTReader::InitializeSema(Sema &S) {
6152 void ASTReader::UpdateSema() {
6169 IdentifierInfo* ASTReader::get(const char *NameStart, const char *NameEnd) {
6197 const ASTReader &Reader;
6212 explicit ASTIdentifierIterator(const ASTReader &Reader);
6218 ASTIdentifierIterator::ASTIdentifierIterator(const ASTReader &Reader)
6247 IdentifierIterator *ASTReader::getIdentifiers() {
6256 ASTReader &Reader;
6265 ReadMethodPoolVisitor(ASTReader &Reader, Selector Sel,
6329 void ASTReader::ReadMethodPool(Selector Sel) {
6359 void ASTReader::ReadKnownNamespaces(
6370 void ASTReader::ReadUndefinedButUsed(
6380 void ASTReader::ReadTentativeDefinitions(
6390 void ASTReader::ReadUnusedFileScopedDecls(
6401 void ASTReader::ReadDelegatingConstructors(
6412 void ASTReader::ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) {
6422 void ASTReader::ReadDynamicClasses(SmallVectorImpl<CXXRecordDecl *> &Decls) {
6433 ASTReader::ReadLocallyScopedExternCDecls(SmallVectorImpl<NamedDecl *> &Decls) {
6443 void ASTReader::ReadReferencedSelectors(
6461 void ASTReader::ReadWeakUndeclaredIdentifiers(
6481 void ASTReader::ReadUsedVTables(SmallVectorImpl<ExternalVTableUse> &VTables) {
6493 void ASTReader::ReadPendingInstantiations(
6505 void ASTReader::ReadLateParsedTemplates(
6528 void ASTReader::LoadSelector(Selector Sel) {
6533 void ASTReader::SetIdentifierInfo(IdentifierID ID, IdentifierInfo *II) {
6558 ASTReader::SetGloballyVisibleDecls(IdentifierInfo *II,
6588 IdentifierInfo *ASTReader::DecodeIdentifierInfo(IdentifierID ID) {
6622 IdentifierInfo *ASTReader::getLocalIdentifier(ModuleFile &M, unsigned LocalID) {
6626 IdentifierID ASTReader::getGlobalIdentifierID(ModuleFile &M, unsigned LocalID) {
6638 MacroInfo *ASTReader::getMacro(MacroID ID) {
6664 MacroID ASTReader::getGlobalMacroID(ModuleFile &M, unsigned LocalID) {
6676 ASTReader::getGlobalSubmoduleID(ModuleFile &M, unsigned LocalID) {
6688 Module *ASTReader::getSubmodule(SubmoduleID GlobalID) {
6702 Module *ASTReader::getModule(unsigned ID) {
6706 Selector ASTReader::getLocalSelector(ModuleFile &M, unsigned LocalID) {
6710 Selector ASTReader::DecodeSelector(serialization::SelectorID ID) {
6735 Selector ASTReader::GetExternalSelector(serialization::SelectorID ID) {
6739 uint32_t ASTReader::GetNumExternalSelectors() {
6745 ASTReader::getGlobalSelectorID(ModuleFile &M, unsigned LocalID) const {
6758 ASTReader::ReadDeclarationName(ModuleFile &F,
6797 void ASTReader::ReadDeclarationNameLoc(ModuleFile &F,
6829 void ASTReader::ReadDeclarationNameInfo(ModuleFile &F,
6839 void ASTReader::ReadQualifierInfo(ModuleFile &F, QualifierInfo &Info,
6852 ASTReader::ReadTemplateName(ModuleFile &F, const RecordData &Record,
6911 ASTReader::ReadTemplateArgument(ModuleFile &F,
6955 ASTReader::ReadTemplateParameterList(ModuleFile &F,
6974 ASTReader::
6985 void ASTReader::ReadUnresolvedSet(ModuleFile &F, LazyASTUnresolvedSet &Set,
6997 ASTReader::ReadCXXBaseSpecifier(ModuleFile &F,
7013 ASTReader::ReadCXXCtorInitializers(ModuleFile &F, const RecordData &Record,
7101 ASTReader::ReadNestedNameSpecifier(ModuleFile &F,
7150 ASTReader::ReadNestedNameSpecifierLoc(ModuleFile &F, const RecordData &Record,
7206 ASTReader::ReadSourceRange(ModuleFile &F, const RecordData &Record,
7214 llvm::APInt ASTReader::ReadAPInt(const RecordData &Record, unsigned &Idx) {
7223 llvm::APSInt ASTReader::ReadAPSInt(const RecordData &Record, unsigned &Idx) {
7229 llvm::APFloat ASTReader::ReadAPFloat(const RecordData &Record,
7236 std::string ASTReader::ReadString(const RecordData &Record, unsigned &Idx) {
7243 VersionTuple ASTReader::ReadVersionTuple(const RecordData &Record,
7255 CXXTemporary *ASTReader::ReadCXXTemporary(ModuleFile &F,
7262 DiagnosticBuilder ASTReader::Diag(unsigned DiagID) {
7266 DiagnosticBuilder ASTReader::Diag(SourceLocation Loc, unsigned DiagID) {
7272 IdentifierTable &ASTReader::getIdentifierTable() {
7278 void ASTReader::RecordSwitchCaseID(SwitchCase *SC, unsigned ID) {
7285 SwitchCase *ASTReader::getSwitchCaseWithID(unsigned ID) {
7290 void ASTReader::ClearSwitchCaseIDs() {
7294 void ASTReader::ReadComments() {
7344 void ASTReader::finishPendingActions() {
7546 void ASTReader::FinishedDeserializing() {
7573 void ASTReader::pushExternalDeclIntoScope(NamedDecl *D, DeclarationName Name) {
7588 ASTReader::ASTReader(Preprocessor &PP, ASTContext &Context,
7615 ASTReader::~ASTReader() {