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"
653 void ASTReader::setDeserializationListener(ASTDeserializationListener *Listener,
749 static bool isInterestingIdentifier(ASTReader &Reader, IdentifierInfo &II,
977 bool ASTReader::ReadLexicalDeclContextStorage(ModuleFile &M,
1013 bool ASTReader::ReadVisibleDeclContextStorage(ModuleFile &M,
1038 void ASTReader::Error(StringRef Msg) {
1047 void ASTReader::Error(unsigned DiagID,
1061 bool ASTReader::ParseLineTable(ModuleFile &F,
1105 bool ASTReader::ReadSourceManagerBlock(ModuleFile &F) {
1193 bool ASTReader::ReadSLocEntry(int ID) {
1323 std::pair<SourceLocation, StringRef> ASTReader::getModuleImportLoc(int ID) {
1343 SourceLocation ASTReader::getImportLocation(ModuleFile *F) {
1360 bool ASTReader::ReadBlockAbbrevs(BitstreamCursor &Cursor, unsigned BlockID) {
1377 Token ASTReader::ReadToken(ModuleFile &F, const RecordDataImpl &Record,
1390 MacroInfo *ASTReader::ReadMacroRecord(ModuleFile &F, uint64_t Offset) {
1501 ASTReader::getGlobalPreprocessedEntityID(ModuleFile &M, unsigned LocalID) const {
1623 void ASTReader::addPendingMacro(IdentifierInfo *II,
1630 void ASTReader::ReadDefinedMacros() {
1732 void ASTReader::updateOutOfDateIdentifier(IdentifierInfo &II) {
1757 void ASTReader
1768 void ASTReader::resolvePendingMacro(IdentifierInfo *II,
1878 ASTReader::InputFileInfo
1879 ASTReader::readInputFileInfo(ModuleFile &F, unsigned ID) {
1905 InputFile ASTReader::getInputFile(ModuleFile &F, unsigned ID, bool Complain) {
2040 void ASTReader::ResolveImportedPath(ModuleFile &M, std::string &Filename) {
2046 void ASTReader::ResolveImportedPath(std::string &Filename, StringRef Prefix) {
2055 static bool isDiagnosedResult(ASTReader::ASTReadResult ARR, unsigned Caps) {
2057 case ASTReader::Failure: return true;
2058 case ASTReader::Missing: return !(Caps & ASTReader::ARR_Missing);
2059 case ASTReader::OutOfDate: return !(Caps & ASTReader::ARR_OutOfDate);
2060 case ASTReader::VersionMismatch: return !(Caps & ASTReader::ARR_VersionMismatch);
2061 case ASTReader::ConfigurationMismatch:
2062 return !(Caps & ASTReader::ARR_ConfigurationMismatch);
2063 case ASTReader::HadErrors: return true;
2064 case ASTReader::Success: return false;
2070 ASTReader::ASTReadResult ASTReader::ReadOptionsBlock(
2150 ASTReader::ASTReadResult
2151 ASTReader::ReadControlBlock(ModuleFile &F,
2430 ASTReader::ASTReadResult
2431 ASTReader::ReadASTBlock(ModuleFile &F, unsigned ClientLoadCapabilities) {
3213 ASTReader::ASTReadResult
3214 ASTReader::ReadModuleMapFileBlock(RecordData &Record, ModuleFile &F,
3343 void ASTReader::makeNamesVisible(const HiddenNames &Names, Module *Owner) {
3357 void ASTReader::makeModuleVisible(Module *Mod,
3403 bool ASTReader::loadGlobalIndex() {
3425 bool ASTReader::isGlobalIndexUnavailable() const {
3470 ASTReader::ASTReadResult ASTReader::ReadAST(const std::string &FileName,
3717 ASTReader::ASTReadResult
3718 ASTReader::ReadASTCore(StringRef FileName,
3877 ASTReader::ASTReadResult ASTReader::ReadExtensionBlock(ModuleFile &F) {
3927 void ASTReader::InitializeContext() {
4061 void ASTReader::finalizeForWriting() {
4077 ASTReader::RecordData Record;
4094 std::string ASTReader::getOriginalSourceFile(
4189 bool ASTReader::readASTFileControlBlock(
4397 bool ASTReader::isAcceptableASTFile(
4409 ASTReader::ASTReadResult
4410 ASTReader::ReadSubmoduleBlock(ModuleFile &F, unsigned ClientLoadCapabilities) {
4671 bool ASTReader::ParseLanguageOptions(const RecordData &Record,
4706 bool ASTReader::ParseTargetOptions(const RecordData &Record, bool Complain,
4725 bool ASTReader::ParseDiagnosticOptions(const RecordData &Record, bool Complain,
4742 bool ASTReader::ParseFileSystemOptions(const RecordData &Record, bool Complain,
4750 bool ASTReader::ParseHeaderSearchOptions(const RecordData &Record,
4789 bool ASTReader::ParsePreprocessorOptions(const RecordData &Record,
4825 ASTReader::getModulePreprocessedEntity(unsigned GlobalIndex) {
4836 ASTReader::getModulePreprocessedEntities(ModuleFile &Mod) const {
4845 llvm::iterator_range<ASTReader::ModuleDeclIterator>
4846 ASTReader::getModuleFileLevelDecls(ModuleFile &Mod) {
4853 PreprocessedEntity *ASTReader::ReadPreprocessedEntity(unsigned Index) {
4944 PreprocessedEntityID ASTReader::findNextPreprocessedEntity(
4961 const ASTReader &Reader;
4964 PPEntityComp(const ASTReader &Reader, ModuleFile &M) : Reader(Reader), M(M) { }
4989 PreprocessedEntityID ASTReader::findPreprocessedEntity(SourceLocation Loc,
5043 ASTReader::findPreprocessedEntitiesInRange(SourceRange Range) {
5056 Optional<bool> ASTReader::isPreprocessedEntityInFileID(unsigned Index,
5106 HeaderFileInfo ASTReader::GetHeaderFileInfo(const FileEntry *FE) {
5115 void ASTReader::ReadPragmaDiagnosticMappings(DiagnosticsEngine &Diag) {
5162 ASTReader::RecordLocation ASTReader::TypeCursorForIndex(unsigned Index) {
5175 QualType ASTReader::readTypeRecord(unsigned Index) {
5640 void ASTReader::readExceptionSpec(ModuleFile &ModuleFile,
5662 ASTReader &Reader;
5664 const ASTReader::RecordData &Record;
5667 SourceLocation ReadSourceLocation(const ASTReader::RecordData &R,
5673 T *ReadDeclAs(const ASTReader::RecordData &Record, unsigned &Idx) {
5678 TypeLocReader(ASTReader &Reader, ModuleFile &F,
5679 const ASTReader::RecordData &Record, unsigned &Idx)
5908 TypeSourceInfo *ASTReader::GetTypeSourceInfo(ModuleFile &F,
5922 QualType ASTReader::GetType(TypeID ID) {
6123 QualType ASTReader::getLocalType(ModuleFile &F, unsigned LocalID) {
6128 ASTReader::getGlobalTypeID(ModuleFile &F, unsigned LocalID) const {
6144 ASTReader::GetTemplateArgumentLocInfo(ModuleFile &F,
6180 ASTReader::ReadTemplateArgumentLoc(ModuleFile &F,
6193 ASTReader::ReadASTTemplateArgumentListInfo(ModuleFile &F,
6205 Decl *ASTReader::GetExternalDecl(uint32_t ID) {
6215 void ASTReader::CompleteRedeclChain(const Decl *D) {
6267 uint64_t ASTReader::ReadCXXCtorInitializersRef(ModuleFile &M,
6280 ASTReader::GetExternalCXXCtorInitializers(uint64_t Offset) {
6299 uint64_t ASTReader::readCXXBaseSpecifiers(ModuleFile &M,
6311 CXXBaseSpecifier *ASTReader::GetExternalCXXBaseSpecifiers(uint64_t Offset) {
6335 ASTReader::getGlobalDeclID(ModuleFile &F, LocalDeclID LocalID) const {
6346 bool ASTReader::isDeclIDFromModule(serialization::GlobalDeclID ID,
6356 ModuleFile *ASTReader::getOwningModuleFile(const Decl *D) {
6364 SourceLocation ASTReader::getSourceLocationForDeclID(GlobalDeclID ID) {
6430 Decl *ASTReader::GetExistingDecl(DeclID ID) {
6454 Decl *ASTReader::GetDecl(DeclID ID) {
6475 DeclID ASTReader::mapGlobalIDToModuleFileGlobalID(ModuleFile &M,
6492 serialization::DeclID ASTReader::ReadDeclID(ModuleFile &F,
6508 Stmt *ASTReader::GetExternalDeclStmt(uint64_t Offset) {
6518 void ASTReader::FindExternalLexicalDecls(
6564 ASTReader &Reader;
6568 DeclIDComp(ASTReader &Reader, ModuleFile &M) : Reader(Reader), Mod(M) {}
6594 void ASTReader::FindFileRegionDecls(FileID File,
6638 ASTReader::FindExternalVisibleDeclsByName(const DeclContext *DC,
6664 void ASTReader::completeVisibleDeclsMap(const DeclContext *DC) {
6688 ASTReader::getLoadedLookupTables(DeclContext *Primary) const {
6707 void ASTReader::PassInterestingDeclsToConsumer() {
6732 void ASTReader::PassInterestingDeclToConsumer(Decl *D) {
6739 void ASTReader::StartTranslationUnit(ASTConsumer *Consumer) {
6749 void ASTReader::PrintStats() {
6865 void ASTReader::dump() {
6887 void ASTReader::getMemoryBufferSizes(MemoryBufferSizes &sizes) const {
6904 void ASTReader::InitializeSema(Sema &S) {
6934 void ASTReader::UpdateSema() {
6956 IdentifierInfo *ASTReader::get(StringRef Name) {
6996 const ASTReader &Reader;
7011 explicit ASTIdentifierIterator(const ASTReader &Reader);
7017 ASTIdentifierIterator::ASTIdentifierIterator(const ASTReader &Reader)
7046 IdentifierIterator *ASTReader::getIdentifiers() {
7055 ASTReader &Reader;
7066 ReadMethodPoolVisitor(ASTReader &Reader, Selector Sel,
7133 void ASTReader::ReadMethodPool(Selector Sel) {
7169 void ASTReader::ReadKnownNamespaces(
7180 void ASTReader::ReadUndefinedButUsed(
7190 void ASTReader::ReadMismatchingDeleteExpressions(llvm::MapVector<
7205 void ASTReader::ReadTentativeDefinitions(
7215 void ASTReader::ReadUnusedFileScopedDecls(
7226 void ASTReader::ReadDelegatingConstructors(
7237 void ASTReader::ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) {
7247 void ASTReader::ReadUnusedLocalTypedefNameCandidates(
7259 void ASTReader::ReadReferencedSelectors(
7277 void ASTReader::ReadWeakUndeclaredIdentifiers(
7297 void ASTReader::ReadUsedVTables(SmallVectorImpl<ExternalVTableUse> &VTables) {
7309 void ASTReader::ReadPendingInstantiations(
7321 void ASTReader::ReadLateParsedTemplates(
7344 void ASTReader::LoadSelector(Selector Sel) {
7349 void ASTReader::SetIdentifierInfo(IdentifierID ID, IdentifierInfo *II) {
7374 ASTReader::SetGloballyVisibleDecls(IdentifierInfo *II,
7406 IdentifierInfo *ASTReader::DecodeIdentifierInfo(IdentifierID ID) {
7440 IdentifierInfo *ASTReader::getLocalIdentifier(ModuleFile &M, unsigned LocalID) {
7444 IdentifierID ASTReader::getGlobalIdentifierID(ModuleFile &M, unsigned LocalID) {
7456 MacroInfo *ASTReader::getMacro(MacroID ID) {
7482 MacroID ASTReader::getGlobalMacroID(ModuleFile &M, unsigned LocalID) {
7494 ASTReader::getGlobalSubmoduleID(ModuleFile &M, unsigned LocalID) {
7506 Module *ASTReader::getSubmodule(SubmoduleID GlobalID) {
7520 Module *ASTReader::getModule(unsigned ID) {
7524 ModuleFile *ASTReader::getLocalModuleFile(ModuleFile &F, unsigned ID) {
7537 unsigned ASTReader::getModuleFileID(ModuleFile *F) {
7555 ASTReader::getSourceDescriptor(unsigned ID) {
7563 return ASTReader::ASTSourceDescriptor(
7569 Selector ASTReader::getLocalSelector(ModuleFile &M, unsigned LocalID) {
7573 Selector ASTReader::DecodeSelector(serialization::SelectorID ID) {
7598 Selector ASTReader::GetExternalSelector(serialization::SelectorID ID) {
7602 uint32_t ASTReader::GetNumExternalSelectors() {
7608 ASTReader::getGlobalSelectorID(ModuleFile &M, unsigned LocalID) const {
7621 ASTReader::ReadDeclarationName(ModuleFile &F,
7660 void ASTReader::ReadDeclarationNameLoc(ModuleFile &F,
7692 void ASTReader::ReadDeclarationNameInfo(ModuleFile &F,
7702 void ASTReader::ReadQualifierInfo(ModuleFile &F, QualifierInfo &Info,
7715 ASTReader::ReadTemplateName(ModuleFile &F, const RecordData &Record,
7773 TemplateArgument ASTReader::ReadTemplateArgument(ModuleFile &F,
7827 ASTReader::ReadTemplateParameterList(ModuleFile &F,
7846 ASTReader::
7857 void ASTReader::ReadUnresolvedSet(ModuleFile &F, LazyASTUnresolvedSet &Set,
7869 ASTReader::ReadCXXBaseSpecifier(ModuleFile &F,
7885 ASTReader::ReadCXXCtorInitializers(ModuleFile &F, const RecordData &Record,
7970 ASTReader::ReadNestedNameSpecifier(ModuleFile &F,
8025 ASTReader::ReadNestedNameSpecifierLoc(ModuleFile &F, const RecordData &Record,
8088 ASTReader::ReadSourceRange(ModuleFile &F, const RecordData &Record,
8096 llvm::APInt ASTReader::ReadAPInt(const RecordData &Record, unsigned &Idx) {
8105 llvm::APSInt ASTReader::ReadAPSInt(const RecordData &Record, unsigned &Idx) {
8111 llvm::APFloat ASTReader::ReadAPFloat(const RecordData &Record,
8118 std::string ASTReader::ReadString(const RecordData &Record, unsigned &Idx) {
8125 std::string ASTReader::ReadPath(ModuleFile &F, const RecordData &Record,
8132 VersionTuple ASTReader::ReadVersionTuple(const RecordData &Record,
8144 CXXTemporary *ASTReader::ReadCXXTemporary(ModuleFile &F,
8151 DiagnosticBuilder ASTReader::Diag(unsigned DiagID) {
8155 DiagnosticBuilder ASTReader::Diag(SourceLocation Loc, unsigned DiagID) {
8161 IdentifierTable &ASTReader::getIdentifierTable() {
8167 void ASTReader::RecordSwitchCaseID(SwitchCase *SC, unsigned ID) {
8174 SwitchCase *ASTReader::getSwitchCaseWithID(unsigned ID) {
8179 void ASTReader::ClearSwitchCaseIDs() {
8183 void ASTReader::ReadComments() {
8234 std::string ASTReader::getOwningModuleNameForDiagnostic(const Decl *D) {
8247 void ASTReader::finishPendingActions() {
8410 void ASTReader::diagnoseOdrViolations() {
8563 void ASTReader::StartedDeserializing() {
8568 void ASTReader::FinishedDeserializing() {
8605 void ASTReader::pushExternalDeclIntoScope(NamedDecl *D, DeclarationName Name) {
8631 ASTReader::ASTReader(
8677 ASTReader::~ASTReader() {