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"
384 ASTReader::setDeserializationListener(ASTDeserializationListener *Listener) {
692 bool ASTReader::ReadDeclContextStorage(ModuleFile &M,
736 void ASTReader::Error(StringRef Msg) {
740 void ASTReader::Error(unsigned DiagID,
754 bool ASTReader::ParseLineTable(ModuleFile &F,
800 bool ASTReader::ReadSourceManagerBlock(ModuleFile &F) {
888 bool ASTReader::ReadSLocEntry(int ID) {
1016 std::pair<SourceLocation, StringRef> ASTReader::getModuleImportLoc(int ID) {
1036 SourceLocation ASTReader::getImportLocation(ModuleFile *F) {
1057 bool ASTReader::ReadBlockAbbrevs(BitstreamCursor &Cursor, unsigned BlockID) {
1076 void ASTReader::ReadMacroRecord(ModuleFile &F, uint64_t Offset,
1289 ASTReader::getGlobalPreprocessedEntityID(ModuleFile &M, unsigned LocalID) const {
1384 void ASTReader::setIdentifierIsMacro(IdentifierInfo *II, ArrayRef<MacroID> IDs){
1390 void ASTReader::ReadDefinedMacros() {
1493 void ASTReader::updateOutOfDateIdentifier(IdentifierInfo &II) {
1518 void ASTReader::markIdentifierUpToDate(IdentifierInfo *II) {
1529 InputFile ASTReader::getInputFile(ModuleFile &F, unsigned ID, bool Complain) {
1635 const FileEntry *ASTReader::getFileEntry(StringRef filenameStrRef) {
1655 void ASTReader::MaybeAddSystemRootToFilename(ModuleFile &M,
1677 ASTReader::ASTReadResult
1678 ASTReader::ReadControlBlock(ModuleFile &F,
1875 bool ASTReader::ReadASTBlock(ModuleFile &F) {
2673 void ASTReader::makeNamesVisible(const HiddenNames &Names) {
2711 void ASTReader::makeModuleVisible(Module *Mod,
2764 bool ASTReader::loadGlobalIndex() {
2786 bool ASTReader::isGlobalIndexUnavailable() const {
2791 ASTReader::ASTReadResult ASTReader::ReadAST(const std::string &FileName,
2920 ASTReader::ASTReadResult
2921 ASTReader::ReadASTCore(StringRef FileName,
3029 void ASTReader::InitializeContext() {
3165 void ASTReader::finalizeForWriting() {
3207 std::string ASTReader::getOriginalSourceFile(const std::string &ASTFileName,
3296 bool ASTReader::readASTFileControlBlock(StringRef Filename,
3391 bool ASTReader::isAcceptableASTFile(StringRef Filename,
3400 bool ASTReader::ReadSubmoduleBlock(ModuleFile &F) {
3689 bool ASTReader::ParseLanguageOptions(const RecordData &Record,
3721 bool ASTReader::ParseTargetOptions(const RecordData &Record,
3741 bool ASTReader::ParseDiagnosticOptions(const RecordData &Record, bool Complain,
3757 bool ASTReader::ParseFileSystemOptions(const RecordData &Record, bool Complain,
3765 bool ASTReader::ParseHeaderSearchOptions(const RecordData &Record,
3802 bool ASTReader::ParsePreprocessorOptions(const RecordData &Record,
3837 ASTReader::getModulePreprocessedEntity(unsigned GlobalIndex) {
3848 ASTReader::getModulePreprocessedEntities(ModuleFile &Mod) const {
3857 std::pair<ASTReader::ModuleDeclIterator, ASTReader::ModuleDeclIterator>
3858 ASTReader::getModuleFileLevelDecls(ModuleFile &Mod) {
3864 PreprocessedEntity *ASTReader::ReadPreprocessedEntity(unsigned Index) {
3955 PreprocessedEntityID ASTReader::findNextPreprocessedEntity(
3972 const ASTReader &Reader;
3975 PPEntityComp(const ASTReader &Reader, ModuleFile &M) : Reader(Reader), M(M) { }
4002 ASTReader::findBeginPreprocessedEntity(SourceLocation BLoc) const {
4050 ASTReader::findEndPreprocessedEntity(SourceLocation ELoc) const {
4080 ASTReader::findPreprocessedEntitiesInRange(SourceRange Range) {
4092 Optional<bool> ASTReader::isPreprocessedEntityInFileID(unsigned Index,
4145 HeaderFileInfo ASTReader::GetHeaderFileInfo(const FileEntry *FE) {
4157 void ASTReader::ReadPragmaDiagnosticMappings(DiagnosticsEngine &Diag) {
4204 ASTReader::RecordLocation ASTReader::TypeCursorForIndex(unsigned Index) {
4217 QualType ASTReader::readTypeRecord(unsigned Index) {
4654 ASTReader &Reader;
4656 const ASTReader::RecordData &Record;
4659 SourceLocation ReadSourceLocation(const ASTReader::RecordData &R,
4665 T *ReadDeclAs(const ASTReader::RecordData &Record, unsigned &Idx) {
4670 TypeLocReader(ASTReader &Reader, ModuleFile &F,
4671 const ASTReader::RecordData &Record, unsigned &Idx)
4890 TypeSourceInfo *ASTReader::GetTypeSourceInfo(ModuleFile &F,
4904 QualType ASTReader::GetType(TypeID ID) {
4996 QualType ASTReader::getLocalType(ModuleFile &F, unsigned LocalID) {
5001 ASTReader::getGlobalTypeID(ModuleFile &F, unsigned LocalID) const {
5017 ASTReader::GetTemplateArgumentLocInfo(ModuleFile &F,
5053 ASTReader::ReadTemplateArgumentLoc(ModuleFile &F,
5065 Decl *ASTReader::GetExternalDecl(uint32_t ID) {
5069 uint64_t ASTReader::readCXXBaseSpecifiers(ModuleFile &M, const RecordData &Record,
5078 CXXBaseSpecifier *ASTReader::GetExternalCXXBaseSpecifiers(uint64_t Offset) {
5102 ASTReader::getGlobalDeclID(ModuleFile &F, LocalDeclID LocalID) const {
5113 bool ASTReader::isDeclIDFromModule(serialization::GlobalDeclID ID,
5120 ModuleFile *ASTReader::getOwningModuleFile(const Decl *D) {
5128 SourceLocation ASTReader::getSourceLocationForDeclID(GlobalDeclID ID) {
5147 Decl *ASTReader::GetDecl(DeclID ID) {
5199 DeclID ASTReader::mapGlobalIDToModuleFileGlobalID(ModuleFile &M,
5216 serialization::DeclID ASTReader::ReadDeclID(ModuleFile &F,
5232 Stmt *ASTReader::GetExternalDeclStmt(uint64_t Offset) {
5244 ASTReader &Reader;
5252 FindExternalLexicalDeclsVisitor(ASTReader &Reader, const DeclContext *DC,
5300 ExternalLoadResult ASTReader::FindExternalLexicalDecls(const DeclContext *DC,
5314 ASTReader &Reader;
5318 DeclIDComp(ASTReader &Reader, ModuleFile &M) : Reader(Reader), Mod(M) {}
5344 void ASTReader::FindFileRegionDecls(FileID File,
5391 ASTReader &Reader;
5397 DeclContextNameLookupVisitor(ASTReader &Reader,
5470 ASTReader &Reader) {
5478 ASTReader::FindExternalVisibleDeclsByName(const DeclContext *DC,
5523 ASTReader &Reader;
5529 DeclContextAllNamesVisitor(ASTReader &Reader,
5581 void ASTReader::completeVisibleDeclsMap(const DeclContext *DC) {
5630 void ASTReader::PassInterestingDeclsToConsumer() {
5640 void ASTReader::PassInterestingDeclToConsumer(Decl *D) {
5647 void ASTReader::StartTranslationUnit(ASTConsumer *Consumer) {
5663 void ASTReader::PrintStats() {
5779 void ASTReader::dump() {
5801 void ASTReader::getMemoryBufferSizes(MemoryBufferSizes &sizes) const {
5818 void ASTReader::InitializeSema(Sema &S) {
5854 IdentifierInfo* ASTReader::get(const char *NameStart, const char *NameEnd) {
5882 const ASTReader &Reader;
5897 explicit ASTIdentifierIterator(const ASTReader &Reader);
5903 ASTIdentifierIterator::ASTIdentifierIterator(const ASTReader &Reader)
5932 IdentifierIterator *ASTReader::getIdentifiers() const {
5938 ASTReader &Reader;
5945 ReadMethodPoolVisitor(ASTReader &Reader, Selector Sel,
6003 void ASTReader::ReadMethodPool(Selector Sel) {
6031 void ASTReader::ReadKnownNamespaces(
6042 void ASTReader::ReadUndefinedButUsed(
6052 void ASTReader::ReadTentativeDefinitions(
6062 void ASTReader::ReadUnusedFileScopedDecls(
6073 void ASTReader::ReadDelegatingConstructors(
6084 void ASTReader::ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) {
6094 void ASTReader::ReadDynamicClasses(SmallVectorImpl<CXXRecordDecl *> &Decls) {
6105 ASTReader::ReadLocallyScopedExternCDecls(SmallVectorImpl<NamedDecl *> &Decls) {
6115 void ASTReader::ReadReferencedSelectors(
6133 void ASTReader::ReadWeakUndeclaredIdentifiers(
6153 void ASTReader::ReadUsedVTables(SmallVectorImpl<ExternalVTableUse> &VTables) {
6165 void ASTReader::ReadPendingInstantiations(
6177 void ASTReader::LoadSelector(Selector Sel) {
6182 void ASTReader::SetIdentifierInfo(IdentifierID ID, IdentifierInfo *II) {
6207 ASTReader::SetGloballyVisibleDecls(IdentifierInfo *II,
6238 IdentifierInfo *ASTReader::DecodeIdentifierInfo(IdentifierID ID) {
6272 IdentifierInfo *ASTReader::getLocalIdentifier(ModuleFile &M, unsigned LocalID) {
6276 IdentifierID ASTReader::getGlobalIdentifierID(ModuleFile &M, unsigned LocalID) {
6288 MacroDirective *ASTReader::getMacro(MacroID ID, MacroDirective *Hint) {
6310 MacroID ASTReader::getGlobalMacroID(ModuleFile &M, unsigned LocalID) {
6322 ASTReader::getGlobalSubmoduleID(ModuleFile &M, unsigned LocalID) {
6334 Module *ASTReader::getSubmodule(SubmoduleID GlobalID) {
6348 Module *ASTReader::getModule(unsigned ID) {
6352 Selector ASTReader::getLocalSelector(ModuleFile &M, unsigned LocalID) {
6356 Selector ASTReader::DecodeSelector(serialization::SelectorID ID) {
6381 Selector ASTReader::GetExternalSelector(serialization::SelectorID ID) {
6385 uint32_t ASTReader::GetNumExternalSelectors() {
6391 ASTReader::getGlobalSelectorID(ModuleFile &M, unsigned LocalID) const {
6404 ASTReader::ReadDeclarationName(ModuleFile &F,
6443 void ASTReader::ReadDeclarationNameLoc(ModuleFile &F,
6475 void ASTReader::ReadDeclarationNameInfo(ModuleFile &F,
6485 void ASTReader::ReadQualifierInfo(ModuleFile &F, QualifierInfo &Info,
6498 ASTReader::ReadTemplateName(ModuleFile &F, const RecordData &Record,
6557 ASTReader::ReadTemplateArgument(ModuleFile &F,
6601 ASTReader::ReadTemplateParameterList(ModuleFile &F,
6620 ASTReader::
6631 void ASTReader::ReadUnresolvedSet(ModuleFile &F, ASTUnresolvedSet &Set,
6643 ASTReader::ReadCXXBaseSpecifier(ModuleFile &F,
6659 ASTReader::ReadCXXCtorInitializers(ModuleFile &F, const RecordData &Record,
6740 ASTReader::ReadNestedNameSpecifier(ModuleFile &F,
6789 ASTReader::ReadNestedNameSpecifierLoc(ModuleFile &F, const RecordData &Record,
6845 ASTReader::ReadSourceRange(ModuleFile &F, const RecordData &Record,
6853 llvm::APInt ASTReader::ReadAPInt(const RecordData &Record, unsigned &Idx) {
6862 llvm::APSInt ASTReader::ReadAPSInt(const RecordData &Record, unsigned &Idx) {
6868 llvm::APFloat ASTReader::ReadAPFloat(const RecordData &Record,
6875 std::string ASTReader::ReadString(const RecordData &Record, unsigned &Idx) {
6882 VersionTuple ASTReader::ReadVersionTuple(const RecordData &Record,
6894 CXXTemporary *ASTReader::ReadCXXTemporary(ModuleFile &F,
6901 DiagnosticBuilder ASTReader::Diag(unsigned DiagID) {
6905 DiagnosticBuilder ASTReader::Diag(SourceLocation Loc, unsigned DiagID) {
6911 IdentifierTable &ASTReader::getIdentifierTable() {
6917 void ASTReader::RecordSwitchCaseID(SwitchCase *SC, unsigned ID) {
6924 SwitchCase *ASTReader::getSwitchCaseWithID(unsigned ID) {
6929 void ASTReader::ClearSwitchCaseIDs() {
6933 void ASTReader::ReadComments() {
6983 void ASTReader::finishPendingActions() {
7115 void ASTReader::FinishedDeserializing() {
7142 ASTReader::ASTReader(Preprocessor &PP, ASTContext &Context,
7169 ASTReader::~ASTReader() {