Home
last modified time | relevance | path

Searched refs:FileEntryRef (Results 1 – 25 of 51) sorted by relevance

123

/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DFileEntry.h44 class FileEntryRef; variable
57 class FileEntryRef {
84 friend bool operator==(const FileEntryRef &LHS, const FileEntryRef &RHS) {
93 friend bool operator!=(const FileEntryRef &LHS, const FileEntryRef &RHS) {
153 FileEntryRef() = delete;
184 FileEntryRef(dense_map_empty_tag)
186 FileEntryRef(dense_map_tombstone_tag)
209 class OptionalStorage<clang::FileEntryRef>
241 return clang::FileEntryRef(clang::FileEntryRef::dense_map_empty_tag());
245 return clang::FileEntryRef(clang::FileEntryRef::dense_map_tombstone_tag());
[all …]
H A DFileManager.h94 llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>, llvm::BumpPtrAllocator>
101 std::unique_ptr<llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>>
221 llvm::Expected<FileEntryRef> getFileRef(StringRef Filename,
231 llvm::Expected<FileEntryRef> getSTDIN();
259 FileEntryRef getVirtualFileRef(StringRef Filename, off_t Size,
273 OptionalFileEntryRef getBypassFile(FileEntryRef VFE);
278 getBufferForFile(FileEntryRef Entry, bool isVolatile = false,
330 StringRef getCanonicalName(FileEntryRef File);
H A DSourceManager.h192 ContentCache(FileEntryRef Ent) : ContentCache(Ent, Ent) {} in ContentCache()
194 ContentCache(FileEntryRef Ent, FileEntryRef contentEnt) in ContentCache()
673 llvm::DenseMap<FileEntryRef, SrcMgr::ContentCache*> FileInfos;
691 llvm::DenseMap<const FileEntry *, FileEntryRef> OverriddenFiles;
936 FileID getOrCreateFileID(FileEntryRef SourceFile,
970 getMemoryBufferForFileOrNone(FileEntryRef File);
988 void overrideFileContents(FileEntryRef SourceFile, in overrideFileContents()
1000 void overrideFileContents(FileEntryRef SourceFile,
1027 OptionalFileEntryRef bypassFileContentsOverride(FileEntryRef File);
1030 void setFileIsTransient(FileEntryRef SourceFile);
[all …]
H A DModule.h166 std::variant<std::monostate, FileEntryRef, DirectoryEntryRef> Umbrella;
227 llvm::SmallSetVector<FileEntryRef, 2> TopHeaders;
253 FileEntryRef Entry;
695 if (const auto *Hdr = std::get_if<FileEntryRef>(&Umbrella)) in getUmbrellaHeaderAsWritten()
707 void addTopHeader(FileEntryRef File);
715 ArrayRef<FileEntryRef> getTopHeaders(FileManager &FileMgr);
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Lex/
H A DModuleMap.h71 virtual void moduleMapAddUmbrellaHeader(FileEntryRef Header) {} in moduleMapAddUmbrellaHeader()
197 using AdditionalModMapsSet = llvm::DenseSet<FileEntryRef>;
364 HeadersMap::iterator findKnownHeader(FileEntryRef File);
381 bool isHeaderInUmbrellaDirs(FileEntryRef File) { in isHeaderInUmbrellaDirs()
419 bool isBuiltinHeader(FileEntryRef File);
453 ArrayRef<KnownHeader> findAllModulesForHeader(FileEntryRef File);
488 FileEntryRef File);
492 bool isHeaderInUnavailableModule(FileEntryRef Header) const;
496 bool isHeaderUnavailableInModule(FileEntryRef Header,
692 setUmbrellaHeaderAsWritten(Module *Mod, FileEntryRef UmbrellaHeader,
[all …]
H A DHeaderSearch.h510 StringRef Filename, FileEntryRef ContextFileEnt,
537 void MarkFileIncludeOnce(FileEntryRef File) { in MarkFileIncludeOnce()
544 void MarkFileSystemHeader(FileEntryRef File) { in MarkFileSystemHeader()
556 void SetFileControllingMacro(FileEntryRef File, in SetFileControllingMacro()
566 bool isFileMultipleIncludeGuarded(FileEntryRef File) const;
569 bool hasFileBeenImported(FileEntryRef File) const { in hasFileBeenImported()
581 const HeaderMap *CreateHeaderMap(FileEntryRef FE);
680 findAllModulesForHeader(FileEntryRef File) const;
685 findResolvedModulesForHeader(FileEntryRef File) const;
814 HeaderFileInfo &getFileInfo(FileEntryRef FE);
[all …]
H A DHeaderMap.h91 static std::unique_ptr<HeaderMap> Create(FileEntryRef FE, FileManager &FM);
H A DPreprocessorOptions.h221 FileEntryRef)>
/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/
H A DFileManager.cpp205 llvm::Expected<FileEntryRef>
325 FileEntryRef ReturnedRef(*NamedFileEnt); in getFileRef()
405 return FileEntryRef(NamedFileEnt); in getVirtualFileRef()
406 return FileEntryRef(*Value.V.get<const FileEntryRef::MapEntry *>()); in getVirtualFileRef()
447 return FileEntryRef(NamedFileEnt); in getVirtualFileRef()
464 UFE->LastRef = FileEntryRef(NamedFileEnt); in getVirtualFileRef()
470 return FileEntryRef(NamedFileEnt); in getVirtualFileRef()
487 return FileEntryRef(*Insertion.first); in getBypassFile()
493 BFE->LastRef = FileEntryRef(*Insertion.first); in getBypassFile()
500 return FileEntryRef(*Insertion.first); in getBypassFile()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ARCMigrate/
H A DFileRemapper.h36 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);
/freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/
H A DFileRemapper.cpp63 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()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Serialization/
H A DModuleFile.h84 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;
/freebsd-14.2/contrib/llvm-project/clang/include/clang/APINotes/
H A DAPINotesManager.h78 std::unique_ptr<APINotesReader> loadAPINotes(FileEntryRef APINotesFile);
92 bool loadAPINotes(const DirectoryEntry *HeaderDir, FileEntryRef APINotesFile);
147 llvm::SmallVector<FileEntryRef, 2>
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/
H A DDependencyGraph.cpp32 llvm::SetVector<FileEntryRef> AllFiles;
34 llvm::DenseMap<FileEntryRef, SmallVector<FileEntryRef, 2>>;
H A DHeaderIncludeGen.cpp53 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 DDependencyFile.cpp55 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
101 void moduleMapFileRead(SourceLocation Loc, FileEntryRef Entry, in moduleMapFileRead()
/freebsd-14.2/contrib/llvm-project/clang/lib/Lex/
H A DHeaderSearch.cpp146 const HeaderMap *HeaderSearch::CreateHeaderMap(FileEntryRef FE) { in CreateHeaderMap()
493 [&](FileEntryRef File) -> OptionalFileEntryRef { in LookupFile()
820 FileEntryRef IncludeFE, bool isAngled = false, in diagnoseFrameworkInclude()
1179 StringRef Filename, FileEntryRef ContextFileEnt, in LookupSubframeworkHeader()
1314 HeaderFileInfo &HeaderSearch::getFileInfo(FileEntryRef FE) { in getFileInfo()
1381 void HeaderSearch::MarkFileModuleHeader(FileEntryRef FE, in MarkFileModuleHeader()
1566 HeaderSearch::findAllModulesForHeader(FileEntryRef File) const { in findAllModulesForHeader()
1576 HeaderSearch::findResolvedModulesForHeader(FileEntryRef File) const { in findResolvedModulesForHeader()
1585 static bool suggestModule(HeaderSearch &HS, FileEntryRef File, in suggestModule()
1658 static OptionalFileEntryRef getPrivateModuleMap(FileEntryRef File, in getPrivateModuleMap()
[all …]
H A DModuleMap.cpp415 bool ModuleMap::isBuiltinHeader(FileEntryRef File) { in isBuiltinHeader()
606 ModuleMap::KnownHeader ModuleMap::findModuleForHeader(FileEntryRef File, in findModuleForHeader()
636 ModuleMap::findOrCreateModuleForHeaderInUmbrellaDir(FileEntryRef File) { in findOrCreateModuleForHeaderInUmbrellaDir()
708 ModuleMap::findAllModulesForHeader(FileEntryRef File) { in findAllModulesForHeader()
720 ModuleMap::findResolvedModulesForHeader(FileEntryRef File) const { in findResolvedModulesForHeader()
729 bool ModuleMap::isHeaderInUnavailableModule(FileEntryRef Header) const { in isHeaderInUnavailableModule()
734 FileEntryRef Header, const Module *RequestingModule) const { in isHeaderUnavailableInModule()
1368 FileEntryRef ModuleMap) { in addAdditionalModuleMapFile()
1520 FileEntryRef ModuleMapFile;
1590 ModuleMap &Map, FileEntryRef ModuleMapFile, in ModuleMapParser()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderAnalysis.cpp60 llvm::StringRef getFileContents(FileEntryRef FE, const SourceManager &SM) { in getFileContents()
69 bool isSelfContainedHeader(FileEntryRef FE, const SourceManager &SM, in isSelfContainedHeader()
/freebsd-14.2/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesManager.cpp67 APINotesManager::loadAPINotes(FileEntryRef APINotesFile) { in loadAPINotes()
127 FileEntryRef APINotesFile) { in loadAPINotes()
219 llvm::SmallVector<FileEntryRef, 2>
224 llvm::SmallVector<FileEntryRef, 2> APINotes; in getCurrentModuleAPINotes()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.h107 llvm::SmallDenseMap<FileEntryRef, unsigned, 8> FileEntries;
140 unsigned getFileID(FileEntryRef File);
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/Inclusions/
H A DHeaderAnalysis.h30 bool isSelfContainedHeader(FileEntryRef FE, const SourceManager &SM,
/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DGlobalModuleIndex.cpp411 using ModuleFilesMap = llvm::MapVector<FileEntryRef, ModuleFileInfo>;
419 std::multimap<FileEntryRef, ImportedModuleFileInfo>;
436 ModuleFileInfo &getModuleFileInfo(FileEntryRef File) { in getModuleFileInfo()
453 llvm::Error loadModuleFile(FileEntryRef File);
525 llvm::Error GlobalModuleIndexBuilder::loadModuleFile(FileEntryRef File) { in loadModuleFile()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoring.cpp81 FileEntryRef Entry = llvm::cantFail(Files.getFileRef(FilePath)); in formatAndApplyAllReplacements()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/IndexSerialization/
H A DSerializablePathCollection.h113 size_t tryStoreFilePath(FileEntryRef FE);

123