Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DFileEntry.h44 class FileEntryRef; variable
49 template <> class OptionalStorage<clang::FileEntryRef>;
57 class FileEntryRef {
90 friend bool operator==(const FileEntryRef &LHS, const FileEntryRef &RHS) {
93 friend bool operator==(const FileEntry *LHS, const FileEntryRef &RHS) {
96 friend bool operator==(const FileEntryRef &LHS, const FileEntry *RHS) {
99 friend bool operator!=(const FileEntryRef &LHS, const FileEntryRef &RHS) {
102 friend bool operator!=(const FileEntry *LHS, const FileEntryRef &RHS) {
105 friend bool operator!=(const FileEntryRef &LHS, const FileEntry *RHS) {
111 friend llvm::hash_code hash_value(FileEntryRef Ref) { in hash_value()
[all …]
H A DFileManager.h94 llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>, llvm::BumpPtrAllocator>
101 std::unique_ptr<llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>>
194 llvm::Expected<FileEntryRef> getFileRef(StringRef Filename,
205 llvm::Expected<FileEntryRef> getSTDIN();
237 FileEntryRef getVirtualFileRef(StringRef Filename, off_t Size,
253 OptionalFileEntryRef getBypassFile(FileEntryRef VFE);
261 getBufferForFile(FileEntryRef Entry, bool isVolatile = false,
320 StringRef getCanonicalName(FileEntryRef File);
H A DSourceManager.h192 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;
919 FileID createFileID(FileEntryRef SourceFile, SourceLocation IncludePos,
944 FileID getOrCreateFileID(FileEntryRef SourceFile,
978 getMemoryBufferForFileOrNone(FileEntryRef File);
983 llvm::MemoryBufferRef getMemoryBufferForFileOrFake(FileEntryRef File) { in getMemoryBufferForFileOrFake()
996 void overrideFileContents(FileEntryRef SourceFile, in overrideFileContents()
1008 void overrideFileContents(FileEntryRef SourceFile,
[all …]
H A DModule.h205 std::variant<std::monostate, FileEntryRef, DirectoryEntryRef> Umbrella;
266 llvm::SmallSetVector<FileEntryRef, 2> TopHeaders;
290 FileEntryRef Entry;
757 if (const auto *Hdr = std::get_if<FileEntryRef>(&Umbrella)) in getUmbrellaHeaderAsWritten()
769 void addTopHeader(FileEntryRef File);
777 ArrayRef<FileEntryRef> getTopHeaders(FileManager &FileMgr);
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DHeaderSearch.h156 virtual HeaderFileInfo GetHeaderFileInfo(FileEntryRef FE) = 0;
330 std::vector<std::pair<FileEntryRef, std::unique_ptr<HeaderMap>>> HeaderMaps;
524 StringRef Filename, FileEntryRef ContextFileEnt,
542 bool ShouldEnterIncludeFile(Preprocessor &PP, FileEntryRef File,
548 SrcMgr::CharacteristicKind getFileDirFlavor(FileEntryRef File) { in getFileDirFlavor()
556 void MarkFileIncludeOnce(FileEntryRef File) { in MarkFileIncludeOnce()
562 void MarkFileSystemHeader(FileEntryRef File) { in MarkFileSystemHeader()
567 void MarkFileModuleHeader(FileEntryRef FE, ModuleMap::ModuleHeaderRole Role,
574 void SetFileControllingMacro(FileEntryRef File, in SetFileControllingMacro()
584 bool isFileMultipleIncludeGuarded(FileEntryRef File) const;
[all …]
H A DModuleMap.h61 virtual void moduleMapFileRead(SourceLocation FileStart, FileEntryRef File, in moduleMapFileRead()
72 virtual void moduleMapAddUmbrellaHeader(FileEntryRef Header) {} in moduleMapAddUmbrellaHeader()
196 using AdditionalModMapsSet = llvm::DenseSet<FileEntryRef>;
201 using HeadersMap = llvm::DenseMap<FileEntryRef, SmallVector<KnownHeader, 1>>;
352 HeadersMap::iterator findKnownHeader(FileEntryRef File);
361 FileEntryRef File, SmallVectorImpl<DirectoryEntryRef> &IntermediateDirs);
365 KnownHeader findOrCreateModuleForHeaderInUmbrellaDir(FileEntryRef File);
369 bool isHeaderInUmbrellaDirs(FileEntryRef File) { in isHeaderInUmbrellaDirs()
407 bool isBuiltinHeader(FileEntryRef File);
431 KnownHeader findModuleForHeader(FileEntryRef File, bool AllowTextual = false,
[all …]
H A DDependencyDirectivesScanner.h148 operator()(FileEntryRef File) = 0;
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DFileManager.cpp197 llvm::Expected<FileEntryRef> FileManager::getFileRef(StringRef Filename, in getFileRef()
210 return FileEntryRef(*SeenFileInsertResult.first); in getFileRef()
268 NamedFileEnt->second = FileEntryRef::MapValue(*UFE, DirInfo); in getFileRef()
307 .insert({Status.getName(), FileEntryRef::MapValue(*UFE, DirInfo)}) in getFileRef()
316 NamedFileEnt->second = FileEntryRef::MapValue(Redirection, DirInfo); in getFileRef()
319 FileEntryRef ReturnedRef(*NamedFileEnt); in getFileRef()
345 llvm::Expected<FileEntryRef> FileManager::getSTDIN() { in getSTDIN()
376 FileEntryRef FileManager::getVirtualFileRef(StringRef Filename, off_t Size, in getVirtualFileRef()
384 FileEntryRef::MapValue Value = *NamedFileEnt.second; in getVirtualFileRef()
386 return FileEntryRef(NamedFileEnt); in getVirtualFileRef()
[all …]
H A DSourceManager.cpp389 ContentCache &SourceManager::getOrCreateContentCache(FileEntryRef FileEnt, in getOrCreateContentCache()
538 FileID SourceManager::createFileID(FileEntryRef SourceFile, in createFileID()
585 SourceManager::getOrCreateFileID(FileEntryRef SourceFile, in getOrCreateFileID()
710 SourceManager::getMemoryBufferForFileOrNone(FileEntryRef File) { in getMemoryBufferForFileOrNone()
716 FileEntryRef SourceFile, std::unique_ptr<llvm::MemoryBuffer> Buffer) { in overrideFileContents()
726 FileEntryRef NewFile) { in overrideFileContents()
741 SourceManager::bypassFileContentsOverride(FileEntryRef File) { in bypassFileContentsOverride()
753 void SourceManager::setFileIsTransient(FileEntryRef File) { in setFileIsTransient()
2387 FileEntryRef FE = llvm::cantFail(FileMgr->getFileRef(FileName)); in SourceManagerForFile()
H A DModule.cpp264 if (const auto *Hdr = std::get_if<FileEntryRef>(&Umbrella)) in getEffectiveUmbrellaDir()
271 void Module::addTopHeader(FileEntryRef File) { in addTopHeader()
276 ArrayRef<FileEntryRef> Module::getTopHeaders(FileManager &FileMgr) { in getTopHeaders()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DHeaderIncludeGen.cpp53 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
106 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
119 using DependencyMap = llvm::DenseMap<FileEntryRef, SmallVector<FileEntryRef>>;
298 void HeaderIncludesCallback::FileSkipped(const FileEntryRef &SkippedFile, const in FileSkipped()
368 const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
381 SmallVector<FileEntryRef> SourceFiles; in EndOfMainFile()
386 llvm::sort(SourceFiles, [](const FileEntryRef &LHS, const FileEntryRef &RHS) { in EndOfMainFile()
396 SmallVector<FileEntryRef> &Deps = Dependencies[*S]; in EndOfMainFile()
H A DDependencyGraph.cpp32 llvm::SetVector<FileEntryRef> AllFiles;
34 llvm::DenseMap<FileEntryRef, SmallVector<FileEntryRef, 2>>;
H A DDependencyFile.cpp55 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
127 void moduleMapFileRead(SourceLocation Loc, FileEntryRef Entry, in moduleMapFileRead()
H A DModuleDependencyCollector.cpp75 void moduleMapAddUmbrellaHeader(FileEntryRef Header) override { in moduleMapAddUmbrellaHeader()
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DModuleFile.h90 llvm::PointerIntPair<const FileEntryRef::MapEntry *, 2, unsigned> Val;
95 InputFile(FileEntryRef File, bool isOverridden = false,
115 return FileEntryRef(*P); in getFile()
132 ModuleFile(ModuleKind Kind, FileEntryRef File, unsigned Generation) in ModuleFile()
185 FileEntryRef File;
/freebsd/contrib/llvm-project/clang/include/clang/APINotes/
H A DAPINotesManager.h85 std::unique_ptr<APINotesReader> loadAPINotes(FileEntryRef APINotesFile);
99 bool loadAPINotes(const DirectoryEntry *HeaderDir, FileEntryRef APINotesFile);
154 llvm::SmallVector<FileEntryRef, 2>
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DHeaderSearch.cpp174 const HeaderMap *HeaderSearch::CreateHeaderMap(FileEntryRef FE) { in CreateHeaderMap()
522 [&](FileEntryRef File) -> OptionalFileEntryRef { in LookupFile()
849 FileEntryRef IncludeFE, bool isAngled = false, in diagnoseFrameworkInclude()
1159 StringRef Filename, FileEntryRef ContextFileEnt, in LookupSubframeworkHeader()
1311 HeaderFileInfo &HeaderSearch::getFileInfo(FileEntryRef FE) { in getFileInfo()
1333 const HeaderFileInfo *HeaderSearch::getExistingFileInfo(FileEntryRef FE) const { in getExistingFileInfo()
1359 HeaderSearch::getExistingLocalFileInfo(FileEntryRef FE) const { in getExistingLocalFileInfo()
1370 bool HeaderSearch::isFileMultipleIncludeGuarded(FileEntryRef File) const { in isFileMultipleIncludeGuarded()
1379 void HeaderSearch::MarkFileModuleHeader(FileEntryRef FE, in MarkFileModuleHeader()
1397 FileEntryRef File, bool isImport, in ShouldEnterIncludeFile()
[all …]
H A DModuleMap.cpp403 bool ModuleMap::isBuiltinHeader(FileEntryRef File) { in isBuiltinHeader()
415 ModuleMap::HeadersMap::iterator ModuleMap::findKnownHeader(FileEntryRef File) { in findKnownHeader()
427 FileEntryRef File, SmallVectorImpl<DirectoryEntryRef> &IntermediateDirs) { in findHeaderInUmbrellaDirs()
487 StringRef Filename, FileEntryRef File) { in diagnoseHeaderInclusion()
594 ModuleMap::KnownHeader ModuleMap::findModuleForHeader(FileEntryRef File, in findModuleForHeader()
624 ModuleMap::findOrCreateModuleForHeaderInUmbrellaDir(FileEntryRef File) { in findOrCreateModuleForHeaderInUmbrellaDir()
693 ModuleMap::findAllModulesForHeader(FileEntryRef File) { in findAllModulesForHeader()
705 ModuleMap::findResolvedModulesForHeader(FileEntryRef File) const { in findResolvedModulesForHeader()
714 bool ModuleMap::isHeaderInUnavailableModule(FileEntryRef Header) const { in isHeaderInUnavailableModule()
719 FileEntryRef Header, const Module *RequestingModule) const { in isHeaderUnavailableInModule()
[all …]
H A DHeaderMap.cpp48 std::unique_ptr<HeaderMap> HeaderMap::Create(FileEntryRef FE, FileManager &FM) { in Create()
/freebsd/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>
225 llvm::SmallVector<FileEntryRef, 2> APINotes; in getCurrentModuleAPINotes()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.h117 llvm::SmallDenseMap<FileEntryRef, unsigned, 8> FileEntries;
150 unsigned getFileID(FileEntryRef File);
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DGlobalModuleIndex.cpp407 using ModuleFilesMap = llvm::MapVector<FileEntryRef, ModuleFileInfo>;
415 std::multimap<FileEntryRef, ImportedModuleFileInfo>;
432 ModuleFileInfo &getModuleFileInfo(FileEntryRef File) { in getModuleFileInfo()
448 llvm::Error loadModuleFile(FileEntryRef File);
520 llvm::Error GlobalModuleIndexBuilder::loadModuleFile(FileEntryRef File) { in loadModuleFile()
H A DModuleManager.cpp151 FileEntryRef Entry) -> bool { in addModule()
286 FileEntryRef Entry = in addInMemoryBuffer()
/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoring.cpp79 FileEntryRef Entry = llvm::cantFail(Files.getFileRef(FilePath)); in formatAndApplyAllReplacements()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp72 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
173 void InclusionRewriter::FileSkipped(const FileEntryRef & /*SkippedFile*/, in FileSkipped() argument

12