| /src/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | FileEntry.h | 44 class FileEntryRef; variable 49 template <> class OptionalStorage<clang::FileEntryRef>; 57 class FileEntryRef { 84 friend bool operator==(const FileEntryRef &LHS, const FileEntryRef &RHS) { 87 friend bool operator==(const FileEntry *LHS, const FileEntryRef &RHS) { 90 friend bool operator==(const FileEntryRef &LHS, const FileEntry *RHS) { 93 friend bool operator!=(const FileEntryRef &LHS, const FileEntryRef &RHS) { 96 friend bool operator!=(const FileEntry *LHS, const FileEntryRef &RHS) { 99 friend bool operator!=(const FileEntryRef &LHS, const FileEntry *RHS) { 105 friend llvm::hash_code hash_value(FileEntryRef Ref) { in hash_value() [all …]
|
| H A D | FileManager.h | 94 llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>, llvm::BumpPtrAllocator> 101 std::unique_ptr<llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>> 227 llvm::Expected<FileEntryRef> getFileRef(StringRef Filename, 237 llvm::Expected<FileEntryRef> getSTDIN(); 269 FileEntryRef getVirtualFileRef(StringRef Filename, off_t Size, 283 OptionalFileEntryRef getBypassFile(FileEntryRef VFE); 288 getBufferForFile(FileEntryRef Entry, bool isVolatile = false, 345 StringRef getCanonicalName(FileEntryRef File);
|
| H A D | SourceManager.h | 192 ContentCache(FileEntryRef Ent) : ContentCache(Ent, Ent) {} in ContentCache() 194 ContentCache(FileEntryRef Ent, FileEntryRef contentEnt) in ContentCache() 677 llvm::DenseMap<FileEntryRef, SrcMgr::ContentCache*> FileInfos; 695 llvm::DenseMap<const FileEntry *, FileEntryRef> OverriddenFiles; 915 FileID createFileID(FileEntryRef SourceFile, SourceLocation IncludePos, 940 FileID getOrCreateFileID(FileEntryRef SourceFile, 974 getMemoryBufferForFileOrNone(FileEntryRef File); 979 llvm::MemoryBufferRef getMemoryBufferForFileOrFake(FileEntryRef File) { in getMemoryBufferForFileOrFake() 992 void overrideFileContents(FileEntryRef SourceFile, in overrideFileContents() 1004 void overrideFileContents(FileEntryRef SourceFile, [all …]
|
| H A D | Module.h | 166 std::variant<std::monostate, FileEntryRef, DirectoryEntryRef> Umbrella; 227 llvm::SmallSetVector<FileEntryRef, 2> TopHeaders; 253 FileEntryRef Entry; 701 if (const auto *Hdr = std::get_if<FileEntryRef>(&Umbrella)) in getUmbrellaHeaderAsWritten() 713 void addTopHeader(FileEntryRef File); 721 ArrayRef<FileEntryRef> getTopHeaders(FileManager &FileMgr);
|
| /src/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | ModuleMap.h | 60 virtual void moduleMapFileRead(SourceLocation FileStart, FileEntryRef File, in moduleMapFileRead() 71 virtual void moduleMapAddUmbrellaHeader(FileEntryRef Header) {} in moduleMapAddUmbrellaHeader() 197 using AdditionalModMapsSet = llvm::DenseSet<FileEntryRef>; 202 using HeadersMap = llvm::DenseMap<FileEntryRef, SmallVector<KnownHeader, 1>>; 363 HeadersMap::iterator findKnownHeader(FileEntryRef File); 372 FileEntryRef File, SmallVectorImpl<DirectoryEntryRef> &IntermediateDirs); 376 KnownHeader findOrCreateModuleForHeaderInUmbrellaDir(FileEntryRef File); 380 bool isHeaderInUmbrellaDirs(FileEntryRef File) { in isHeaderInUmbrellaDirs() 418 bool isBuiltinHeader(FileEntryRef File); 442 KnownHeader findModuleForHeader(FileEntryRef File, bool AllowTextual = false, [all …]
|
| H A D | HeaderSearch.h | 168 virtual HeaderFileInfo GetHeaderFileInfo(FileEntryRef FE) = 0; 342 std::vector<std::pair<FileEntryRef, std::unique_ptr<HeaderMap>>> HeaderMaps; 527 StringRef Filename, FileEntryRef ContextFileEnt, 545 bool ShouldEnterIncludeFile(Preprocessor &PP, FileEntryRef File, 551 SrcMgr::CharacteristicKind getFileDirFlavor(FileEntryRef File) { in getFileDirFlavor() 559 void MarkFileIncludeOnce(FileEntryRef File) { in MarkFileIncludeOnce() 565 void MarkFileSystemHeader(FileEntryRef File) { in MarkFileSystemHeader() 570 void MarkFileModuleHeader(FileEntryRef FE, ModuleMap::ModuleHeaderRole Role, 577 void SetFileControllingMacro(FileEntryRef File, in SetFileControllingMacro() 587 bool isFileMultipleIncludeGuarded(FileEntryRef File) const; [all …]
|
| H A D | HeaderMap.h | 91 static std::unique_ptr<HeaderMap> Create(FileEntryRef FE, FileManager &FM);
|
| H A D | PreprocessorOptions.h | 202 FileEntryRef)>
|
| /src/contrib/llvm-project/clang/lib/Basic/ |
| H A D | FileManager.cpp | 215 llvm::Expected<FileEntryRef> 226 return FileEntryRef(*SeenFileInsertResult.first); in getFileRef() 284 NamedFileEnt->second = FileEntryRef::MapValue(*UFE, DirInfo); in getFileRef() 323 .insert({Status.getName(), FileEntryRef::MapValue(*UFE, DirInfo)}) in getFileRef() 332 NamedFileEnt->second = FileEntryRef::MapValue(Redirection, DirInfo); in getFileRef() 335 FileEntryRef ReturnedRef(*NamedFileEnt); in getFileRef() 359 llvm::Expected<FileEntryRef> FileManager::getSTDIN() { in getSTDIN() 390 FileEntryRef FileManager::getVirtualFileRef(StringRef Filename, off_t Size, in getVirtualFileRef() 398 FileEntryRef::MapValue Value = *NamedFileEnt.second; in getVirtualFileRef() 400 return FileEntryRef(NamedFileEnt); in getVirtualFileRef() [all …]
|
| /src/contrib/llvm-project/clang/include/clang/ARCMigrate/ |
| H A D | FileRemapper.h | 36 using Target = std::variant<FileEntryRef, llvm::MemoryBuffer *>; 37 using MappingsTy = llvm::DenseMap<FileEntryRef, Target>; 40 llvm::DenseMap<const FileEntry *, FileEntryRef> ToFromMappings; 69 void remap(FileEntryRef file, std::unique_ptr<llvm::MemoryBuffer> memBuf); 70 void remap(FileEntryRef file, FileEntryRef newfile);
|
| /src/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | FileRemapper.cpp | 63 std::vector<std::pair<FileEntryRef, FileEntryRef>> pairs; in initFromFile() 131 FileEntryRef origFE = I->first; in flushToFile() 137 if (const auto *FE = std::get_if<FileEntryRef>(&I->second)) { in flushToFile() 174 FileEntryRef origFE = I->first; in overwriteOriginal() 199 if (const auto *FE = std::get_if<FileEntryRef>(&Mapping.second)) { in forEachMapping() 212 if (const auto *FE = std::get_if<FileEntryRef>(&I->second)) { in applyMappings() 230 void FileRemapper::remap(FileEntryRef File, in remap() 238 void FileRemapper::remap(FileEntryRef File, FileEntryRef NewFile) { in remap() 265 FileEntryRef toFE = std::get<FileEntryRef>(targ); in resetTarget()
|
| /src/contrib/llvm-project/clang/include/clang/Serialization/ |
| H A D | ModuleFile.h | 84 llvm::PointerIntPair<const FileEntryRef::MapEntry *, 2, unsigned> Val; 89 InputFile(FileEntryRef File, bool isOverridden = false, 109 return FileEntryRef(*P); in getFile() 126 ModuleFile(ModuleKind Kind, FileEntryRef File, unsigned Generation) in ModuleFile() 179 FileEntryRef File;
|
| /src/contrib/llvm-project/clang/include/clang/APINotes/ |
| H A D | APINotesManager.h | 78 std::unique_ptr<APINotesReader> loadAPINotes(FileEntryRef APINotesFile); 92 bool loadAPINotes(const DirectoryEntry *HeaderDir, FileEntryRef APINotesFile); 147 llvm::SmallVector<FileEntryRef, 2>
|
| /src/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DependencyGraph.cpp | 32 llvm::SetVector<FileEntryRef> AllFiles; 34 llvm::DenseMap<FileEntryRef, SmallVector<FileEntryRef, 2>>;
|
| H A D | HeaderIncludeGen.cpp | 53 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, 106 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, 248 void HeaderIncludesCallback::FileSkipped(const FileEntryRef &SkippedFile, const in FileSkipped() 315 const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
|
| H A D | DependencyFile.cpp | 55 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped() 127 void moduleMapFileRead(SourceLocation Loc, FileEntryRef Entry, in moduleMapFileRead()
|
| /src/contrib/llvm-project/clang/lib/Lex/ |
| H A D | HeaderSearch.cpp | 170 const HeaderMap *HeaderSearch::CreateHeaderMap(FileEntryRef FE) { in CreateHeaderMap() 517 [&](FileEntryRef File) -> OptionalFileEntryRef { in LookupFile() 844 FileEntryRef IncludeFE, bool isAngled = false, in diagnoseFrameworkInclude() 1210 StringRef Filename, FileEntryRef ContextFileEnt, in LookupSubframeworkHeader() 1366 HeaderFileInfo &HeaderSearch::getFileInfo(FileEntryRef FE) { in getFileInfo() 1388 const HeaderFileInfo *HeaderSearch::getExistingFileInfo(FileEntryRef FE) const { in getExistingFileInfo() 1414 HeaderSearch::getExistingLocalFileInfo(FileEntryRef FE) const { in getExistingLocalFileInfo() 1425 bool HeaderSearch::isFileMultipleIncludeGuarded(FileEntryRef File) const { in isFileMultipleIncludeGuarded() 1434 void HeaderSearch::MarkFileModuleHeader(FileEntryRef FE, in MarkFileModuleHeader() 1452 FileEntryRef File, bool isImport, in ShouldEnterIncludeFile() [all …]
|
| H A D | ModuleMap.cpp | 415 bool ModuleMap::isBuiltinHeader(FileEntryRef File) { in isBuiltinHeader() 427 ModuleMap::HeadersMap::iterator ModuleMap::findKnownHeader(FileEntryRef File) { in findKnownHeader() 439 FileEntryRef File, SmallVectorImpl<DirectoryEntryRef> &IntermediateDirs) { in findHeaderInUmbrellaDirs() 499 StringRef Filename, FileEntryRef File) { in diagnoseHeaderInclusion() 606 ModuleMap::KnownHeader ModuleMap::findModuleForHeader(FileEntryRef File, in findModuleForHeader() 636 ModuleMap::findOrCreateModuleForHeaderInUmbrellaDir(FileEntryRef File) { in findOrCreateModuleForHeaderInUmbrellaDir() 707 ModuleMap::findAllModulesForHeader(FileEntryRef File) { in findAllModulesForHeader() 719 ModuleMap::findResolvedModulesForHeader(FileEntryRef File) const { in findResolvedModulesForHeader() 728 bool ModuleMap::isHeaderInUnavailableModule(FileEntryRef Header) const { in isHeaderInUnavailableModule() 733 FileEntryRef Header, const Module *RequestingModule) const { in isHeaderUnavailableInModule() [all …]
|
| /src/contrib/llvm-project/clang/lib/Tooling/Inclusions/ |
| H A D | HeaderAnalysis.cpp | 60 llvm::StringRef getFileContents(FileEntryRef FE, const SourceManager &SM) { in getFileContents() 69 bool isSelfContainedHeader(FileEntryRef FE, const SourceManager &SM, in isSelfContainedHeader()
|
| /src/contrib/llvm-project/clang/lib/APINotes/ |
| H A D | APINotesManager.cpp | 68 APINotesManager::loadAPINotes(FileEntryRef APINotesFile) { in loadAPINotes() 128 FileEntryRef APINotesFile) { in loadAPINotes() 220 llvm::SmallVector<FileEntryRef, 2> 226 llvm::SmallVector<FileEntryRef, 2> APINotes; in getCurrentModuleAPINotes()
|
| /src/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.h | 116 llvm::SmallDenseMap<FileEntryRef, unsigned, 8> FileEntries; 149 unsigned getFileID(FileEntryRef File);
|
| /src/contrib/llvm-project/clang/include/clang/Tooling/Inclusions/ |
| H A D | HeaderAnalysis.h | 30 bool isSelfContainedHeader(FileEntryRef FE, const SourceManager &SM,
|
| /src/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | GlobalModuleIndex.cpp | 407 using ModuleFilesMap = llvm::MapVector<FileEntryRef, ModuleFileInfo>; 415 std::multimap<FileEntryRef, ImportedModuleFileInfo>; 432 ModuleFileInfo &getModuleFileInfo(FileEntryRef File) { in getModuleFileInfo() 449 llvm::Error loadModuleFile(FileEntryRef File); 521 llvm::Error GlobalModuleIndexBuilder::loadModuleFile(FileEntryRef File) { in loadModuleFile()
|
| /src/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | Refactoring.cpp | 81 FileEntryRef Entry = llvm::cantFail(Files.getFileRef(FilePath)); in formatAndApplyAllReplacements()
|
| /src/contrib/llvm-project/clang/include/clang/IndexSerialization/ |
| H A D | SerializablePathCollection.h | 113 size_t tryStoreFilePath(FileEntryRef FE);
|