Home
last modified time | relevance | path

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

123

/src/contrib/llvm-project/clang/include/clang/Basic/
H A DFileEntry.h44 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 DFileManager.h94 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 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;
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 DModule.h166 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 DModuleMap.h60 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 DHeaderSearch.h168 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 DHeaderMap.h91 static std::unique_ptr<HeaderMap> Create(FileEntryRef FE, FileManager &FM);
H A DPreprocessorOptions.h202 FileEntryRef)>
/src/contrib/llvm-project/clang/lib/Basic/
H A DFileManager.cpp215 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 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);
/src/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()
/src/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;
/src/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>
/src/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()
127 void moduleMapFileRead(SourceLocation Loc, FileEntryRef Entry, in moduleMapFileRead()
/src/contrib/llvm-project/clang/lib/Lex/
H A DHeaderSearch.cpp170 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 DModuleMap.cpp415 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 DHeaderAnalysis.cpp60 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 DAPINotesManager.cpp68 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 DCoverageMappingGen.h116 llvm::SmallDenseMap<FileEntryRef, unsigned, 8> FileEntries;
149 unsigned getFileID(FileEntryRef File);
/src/contrib/llvm-project/clang/include/clang/Tooling/Inclusions/
H A DHeaderAnalysis.h30 bool isSelfContainedHeader(FileEntryRef FE, const SourceManager &SM,
/src/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()
449 llvm::Error loadModuleFile(FileEntryRef File);
521 llvm::Error GlobalModuleIndexBuilder::loadModuleFile(FileEntryRef File) { in loadModuleFile()
/src/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoring.cpp81 FileEntryRef Entry = llvm::cantFail(Files.getFileRef(FilePath)); in formatAndApplyAllReplacements()
/src/contrib/llvm-project/clang/include/clang/IndexSerialization/
H A DSerializablePathCollection.h113 size_t tryStoreFilePath(FileEntryRef FE);

123