Home
last modified time | relevance | path

Searched refs:ModuleFile (Results 1 – 25 of 52) sorted by relevance

123

/external/clang/include/clang/Serialization/
DModuleManager.h35 SmallVector<ModuleFile *, 2> Chain;
40 SmallVector<ModuleFile *, 2> PCHChain;
44 SmallVector<ModuleFile *, 2> Roots;
47 llvm::DenseMap<const FileEntry *, ModuleFile *> Modules;
61 SmallVector<ModuleFile *, 4> VisitOrder;
71 SmallVector<ModuleFile *, 4> ModulesInCommonWithGlobalIndex;
94 SmallVector<ModuleFile *, 4> Stack;
114 typedef SmallVectorImpl<ModuleFile*>::iterator ModuleIterator;
115 typedef SmallVectorImpl<ModuleFile*>::const_iterator ModuleConstIterator;
116 typedef SmallVectorImpl<ModuleFile*>::reverse_iterator ModuleReverseIterator;
[all …]
DASTReader.h181 virtual void ReadCounter(const serialization::ModuleFile &M, in ReadCounter()
250 void ReadCounter(const serialization::ModuleFile &M, unsigned Value) override;
282 void ReadCounter(const serialization::ModuleFile &M, unsigned Value) override;
357 typedef serialization::ModuleFile ModuleFile; typedef
414 ContinuousRangeMap<uint64_t, ModuleFile*, 4> GlobalBitOffsetsMap;
417 ContinuousRangeMap<unsigned, ModuleFile*, 64> GlobalSLocEntryMap;
419 typedef ContinuousRangeMap<unsigned, ModuleFile*, 64> GlobalSLocOffsetMapType;
431 typedef ContinuousRangeMap<serialization::TypeID, ModuleFile *, 4>
445 typedef ContinuousRangeMap<serialization::DeclID, ModuleFile *, 4>
452 typedef std::pair<ModuleFile *, uint64_t> FileOffset;
[all …]
DGlobalModuleIndex.h42 class ModuleFile; variable
48 using serialization::ModuleFile;
78 ModuleFile *File;
104 llvm::DenseMap<ModuleFile *, unsigned> ModulesByFile;
161 void getKnownModules(SmallVectorImpl<ModuleFile *> &ModuleFiles);
165 void getModuleDependencies(ModuleFile *File,
166 SmallVectorImpl<ModuleFile *> &Dependencies);
169 typedef llvm::SmallPtrSet<ModuleFile *, 4> HitSet;
186 bool loadedModuleFile(ModuleFile *File);
DModule.h100 class ModuleFile {
102 ModuleFile(ModuleKind Kind, unsigned Generation);
103 ~ModuleFile();
400 llvm::DenseMap<ModuleFile *, serialization::DeclID> GlobalToLocalDeclIDs;
439 llvm::SetVector<ModuleFile *> ImportedBy;
442 llvm::SetVector<ModuleFile *> Imports;
DModuleFileExtension.h31 class ModuleFile; variable
99 ASTReader &Reader, serialization::ModuleFile &Mod,
/external/llvm-project/clang/include/clang/Serialization/
DModuleManager.h51 SmallVector<std::unique_ptr<ModuleFile>, 2> Chain;
56 SmallVector<ModuleFile *, 2> PCHChain;
60 SmallVector<ModuleFile *, 2> Roots;
63 llvm::DenseMap<const FileEntry *, ModuleFile *> Modules;
83 SmallVector<ModuleFile *, 4> VisitOrder;
93 SmallVector<ModuleFile *, 4> ModulesInCommonWithGlobalIndex;
114 SmallVector<ModuleFile *, 4> Stack;
135 SmallVectorImpl<std::unique_ptr<ModuleFile>>::iterator>;
137 SmallVectorImpl<std::unique_ptr<ModuleFile>>::const_iterator>;
139 SmallVectorImpl<std::unique_ptr<ModuleFile>>::reverse_iterator>;
[all …]
DASTReader.h189 virtual void ReadCounter(const serialization::ModuleFile &M, in ReadCounter()
261 void ReadCounter(const serialization::ModuleFile &M, unsigned Value) override;
293 void ReadCounter(const serialization::ModuleFile &M, unsigned Value) override;
391 using ModuleFile = serialization::ModuleFile; variable
448 ContinuousRangeMap<uint64_t, ModuleFile*, 4> GlobalBitOffsetsMap;
451 ContinuousRangeMap<unsigned, ModuleFile*, 64> GlobalSLocEntryMap;
454 ContinuousRangeMap<unsigned, ModuleFile *, 64>;
467 ContinuousRangeMap<serialization::TypeID, ModuleFile *, 4>;
481 ContinuousRangeMap<serialization::DeclID, ModuleFile *, 4>;
487 using FileOffset = std::pair<ModuleFile *, uint64_t>;
[all …]
DGlobalModuleIndex.h42 class ModuleFile; variable
57 using ModuleFile = serialization::ModuleFile; variable
75 ModuleFile *File;
101 llvm::DenseMap<ModuleFile *, unsigned> ModulesByFile;
145 void getKnownModules(llvm::SmallVectorImpl<ModuleFile *> &ModuleFiles);
149 void getModuleDependencies(ModuleFile *File,
150 llvm::SmallVectorImpl<ModuleFile *> &Dependencies);
153 typedef llvm::SmallPtrSet<ModuleFile *, 4> HitSet;
170 bool loadedModuleFile(ModuleFile *File);
DModuleFile.h110 class ModuleFile {
112 ModuleFile(ModuleKind Kind, unsigned Generation) in ModuleFile() function
114 ~ModuleFile();
451 llvm::DenseMap<ModuleFile *, serialization::DeclID> GlobalToLocalDeclIDs;
490 llvm::SetVector<ModuleFile *> ImportedBy;
493 llvm::SetVector<ModuleFile *> Imports;
DASTRecordReader.h32 using ModuleFile = serialization::ModuleFile; variable
35 ModuleFile *F;
44 ASTRecordReader(ASTReader &Reader, ModuleFile &F) in ASTRecordReader()
DModuleFileExtension.h30 class ModuleFile; variable
98 ASTReader &Reader, serialization::ModuleFile &Mod,
/external/llvm-project/clang/lib/Serialization/
DModuleManager.cpp44 ModuleFile *ModuleManager::lookupByFileName(StringRef Name) const { in lookupByFileName()
53 ModuleFile *ModuleManager::lookupByModuleName(StringRef Name) const { in lookupByModuleName()
61 ModuleFile *ModuleManager::lookup(const FileEntry *File) const { in lookup()
89 static void updateModuleImports(ModuleFile &MF, ModuleFile *ImportedBy, in updateModuleImports()
104 SourceLocation ImportLoc, ModuleFile *ImportedBy, in addModule()
109 ModuleFile *&Module, in addModule()
149 auto implicitModuleNamesMatch = [](ModuleKind Kind, const ModuleFile *MF, in addModule()
157 if (ModuleFile *ModuleEntry = Modules.lookup(Entry)) { in addModule()
170 auto NewModule = std::make_unique<ModuleFile>(Type, Generation); in addModule()
261 llvm::SmallPtrSet<ModuleFile *, 4> victimSet( in removeModules()
[all …]
DASTReaderInternals.h38 class ModuleFile; variable
46 ModuleFile &F;
82 using file_type = ModuleFile *;
87 explicit ASTDeclContextNameLookupTrait(ASTReader &Reader, ModuleFile &F) in ASTDeclContextNameLookupTrait()
161 ModuleFile &F;
171 ASTIdentifierLookupTrait(ASTReader &Reader, ModuleFile &F,
193 ModuleFile &F;
211 ASTSelectorLookupTrait(ASTReader &Reader, ModuleFile &F) in ASTSelectorLookupTrait()
246 ModuleFile &M;
266 HeaderFileInfoTrait(ASTReader &Reader, ModuleFile &M, HeaderSearch *HS, in HeaderFileInfoTrait()
DModuleFile.cpp25 ModuleFile::~ModuleFile() { in ~ModuleFile()
47 LLVM_DUMP_METHOD void ModuleFile::dump() { in dump()
DGlobalModuleIndex.cpp285 GlobalModuleIndex::getKnownModules(SmallVectorImpl<ModuleFile *> &ModuleFiles) { in getKnownModules()
288 if (ModuleFile *MF = Modules[I].File) in getKnownModules()
294 ModuleFile *File, in getModuleDependencies()
295 SmallVectorImpl<ModuleFile *> &Dependencies) { in getModuleDependencies()
297 llvm::DenseMap<ModuleFile *, unsigned>::iterator Known in getModuleDependencies()
306 if (ModuleFile *MF = Modules[I].File) in getModuleDependencies()
329 if (ModuleFile *MF = Modules[ModuleIDs[I]].File) in lookupIdentifier()
337 bool GlobalModuleIndex::loadedModuleFile(ModuleFile *File) { in loadedModuleFile()
898 auto ModuleFile = FileMgr.getFile(D->path()); in writeIndex() local
899 if (!ModuleFile) in writeIndex()
[all …]
DASTReader.cpp214 void ChainedASTReaderListener::ReadCounter(const serialization::ModuleFile &M, in ReadCounter()
548 ModuleFile *TopImport = &*ModuleMgr.rbegin(); in getTopImportImplicitModule()
807 void PCHValidator::ReadCounter(const ModuleFile &M, unsigned Value) { in ReadCounter()
1079 ModuleFile *
1143 bool ASTReader::ReadLexicalDeclContextStorage(ModuleFile &M, in ReadLexicalDeclContextStorage()
1193 bool ASTReader::ReadVisibleDeclContextStorage(ModuleFile &M, in ReadVisibleDeclContextStorage()
1259 bool ASTReader::ParseLineTable(ModuleFile &F, in ParseLineTable()
1304 bool ASTReader::ReadSourceManagerBlock(ModuleFile &F) { in ReadSourceManagerBlock()
1460 ModuleFile *F = GlobalSLocEntryMap.find(-ID)->second; in ReadSLocEntry()
1593 ModuleFile *M = GlobalSLocEntryMap.find(-ID)->second; in getModuleImportLoc()
[all …]
DCMakeLists.txt19 ModuleFile.cpp
/external/clang/lib/Serialization/
DModuleManager.cpp31 ModuleFile *ModuleManager::lookup(StringRef Name) { in lookup()
40 ModuleFile *ModuleManager::lookup(const FileEntry *File) { in lookup()
41 llvm::DenseMap<const FileEntry *, ModuleFile *>::iterator Known in lookup()
58 SourceLocation ImportLoc, ModuleFile *ImportedBy, in addModule()
63 ModuleFile *&Module, in addModule()
88 ModuleFile *&ModuleEntry = Modules[Entry]; in addModule()
92 ModuleFile *New = new ModuleFile(Type, Generation); in addModule()
192 llvm::SmallPtrSetImpl<ModuleFile *> &LoadedSuccessfully, in removeModules()
201 llvm::SmallPtrSet<ModuleFile *, 4> victimSet(first, last); in removeModules()
203 auto IsVictim = [&](ModuleFile *MF) { in removeModules()
[all …]
DASTReaderInternals.h35 class ModuleFile; variable
43 ModuleFile &F;
77 typedef ModuleFile *file_type;
82 explicit ASTDeclContextNameLookupTrait(ASTReader &Reader, ModuleFile &F) in ASTDeclContextNameLookupTrait()
167 ModuleFile &F;
177 ASTIdentifierLookupTrait(ASTReader &Reader, ModuleFile &F,
199 ModuleFile &F;
217 ASTSelectorLookupTrait(ASTReader &Reader, ModuleFile &F) in ASTSelectorLookupTrait()
252 ModuleFile &M;
271 HeaderFileInfoTrait(ASTReader &Reader, ModuleFile &M, HeaderSearch *HS, in HeaderFileInfoTrait()
DModule.cpp23 ModuleFile::ModuleFile(ModuleKind Kind, unsigned Generation) in ModuleFile() function in ModuleFile
45 ModuleFile::~ModuleFile() { in ~ModuleFile()
66 LLVM_DUMP_METHOD void ModuleFile::dump() { in dump()
DGlobalModuleIndex.cpp268 GlobalModuleIndex::getKnownModules(SmallVectorImpl<ModuleFile *> &ModuleFiles) { in getKnownModules()
271 if (ModuleFile *MF = Modules[I].File) in getKnownModules()
277 ModuleFile *File, in getModuleDependencies()
278 SmallVectorImpl<ModuleFile *> &Dependencies) { in getModuleDependencies()
280 llvm::DenseMap<ModuleFile *, unsigned>::iterator Known in getModuleDependencies()
289 if (ModuleFile *MF = Modules[I].File) in getModuleDependencies()
312 if (ModuleFile *MF = Modules[ModuleIDs[I]].File) in lookupIdentifier()
320 bool GlobalModuleIndex::loadedModuleFile(ModuleFile *File) { in loadedModuleFile()
812 const FileEntry *ModuleFile = FileMgr.getFile(D->path()); in writeIndex() local
813 if (!ModuleFile) in writeIndex()
[all …]
DASTReader.cpp130 void ChainedASTReaderListener::ReadCounter(const serialization::ModuleFile &M, in ReadCounter()
440 ModuleFile *TopImport = *ModuleMgr.rbegin(); in ReadDiagnosticOptions()
651 void PCHValidator::ReadCounter(const ModuleFile &M, unsigned Value) { in ReadCounter()
924 ModuleFile *
987 bool ASTReader::ReadLexicalDeclContextStorage(ModuleFile &M, in ReadLexicalDeclContextStorage()
1023 bool ASTReader::ReadVisibleDeclContextStorage(ModuleFile &M, in ReadVisibleDeclContextStorage()
1071 bool ASTReader::ParseLineTable(ModuleFile &F, in ParseLineTable()
1115 bool ASTReader::ReadSourceManagerBlock(ModuleFile &F) { in ReadSourceManagerBlock()
1238 ModuleFile *F = GlobalSLocEntryMap.find(-ID)->second; in ReadSLocEntry()
1353 ModuleFile *M = GlobalSLocEntryMap.find(-ID)->second; in getModuleImportLoc()
[all …]
DASTReaderDecl.cpp39 ModuleFile &F;
66 uint64_t ReadGlobalOffset(ModuleFile &F, const RecordData &R, unsigned &I) { in ReadGlobalOffset()
254 void UpdateDecl(Decl *D, ModuleFile &ModuleFile,
2461 void ASTReader::ReadAttributes(ModuleFile &F, AttrVec &Attrs, in ReadAttributes()
2524 ModuleFile *M = I->second; in DeclCursorForID()
2532 ContinuousRangeMap<uint64_t, ModuleFile*, 4>::iterator I in getLocalBitOffset()
2539 uint64_t ASTReader::getGlobalBitOffset(ModuleFile &M, uint32_t LocalOffset) { in getGlobalBitOffset()
3494 ModuleFile *F = FileAndOffset.first; in loadDeclUpdateRecords()
3551 ModuleFile *M = getOwningModuleFile(FirstLocal); in loadPendingDeclChain()
3646 bool operator()(ModuleFile &M) { in operator ()()
[all …]
/external/llvm-project/clang/include/clang/Index/
DIndexingAction.h29 class ModuleFile; variable
68 void indexModuleFile(serialization::ModuleFile &Mod, ASTReader &Reader,
/external/llvm-project/clang-tools-extra/clang-tidy/
DExpandModularHeadersPPCallbacks.h27 class ModuleFile; variable
61 void handleModuleFile(serialization::ModuleFile *MF);
123 llvm::DenseSet<serialization::ModuleFile *> VisitedModules;

123