/llvm-project/clang/include/clang/Basic/ |
H A D | FileEntry.h | 10 /// Defines interfaces for clang::FileEntry and clang::FileEntryRef. 44 class FileEntryRef; variable 49 template <> class OptionalStorage<clang::FileEntryRef>; 57 class FileEntryRef { 89 friend bool operator==(const FileEntryRef &LHS, const FileEntryRef &RHS) { 92 friend bool operator==(const FileEntry *LHS, const FileEntryRef &RHS) { 95 friend bool operator==(const FileEntryRef &LHS, const FileEntry *RHS) { 98 friend bool operator!=(const FileEntryRef &LHS, const FileEntryRef 154 explicit FileEntryRef(const MapEntry &ME) : ME(&ME) { FileEntryRef() function 176 FileEntryRef(optional_none_tag) : ME(nullptr) {} FileEntryRef() function [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>>> 220 /// a redirecting VFS that uses external file names, the returned FileEntryRef 225 /// or a \c FileEntryRef otherwise. 231 llvm::Expected<FileEntryRef> getFileRef(StringRef Filename, 236 /// Get the FileEntryRef for stdin, returning an error if stdin cannot be 242 llvm::Expected<FileEntryRef> getSTDIN(); 244 /// Get a FileEntryRef if it exists, without doing anything on error. 274 FileEntryRef getVirtualFileRef(StringRef Filename, off_t Size, 290 OptionalFileEntryRef getBypassFile(FileEntryRef VF [all...] |
H A D | SourceManager.h | 156 /// FIXME: Remove this once OrigEntry is a FileEntryRef with a stable name. 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 Fil [all...] |
H A D | Module.h | 176 std::variant<std::monostate, FileEntryRef, DirectoryEntryRef> Umbrella; 237 llvm::SmallSetVector<FileEntryRef, 2> TopHeaders; 261 FileEntryRef Entry; 728 if (const auto *Hdr = std::get_if<FileEntryRef>(&Umbrella)) 740 void addTopHeader(FileEntryRef File); 748 ArrayRef<FileEntryRef> getTopHeaders(FileManager &FileMgr);
|
/llvm-project/clang/unittests/Basic/ |
H A D | FileEntryTest.cpp | 20 StringMap<llvm::ErrorOr<FileEntryRef::MapValue>> Files; 40 FileEntryRef addFile(StringRef Name) { in addFile() 42 return FileEntryRef( in addFile() 43 *Files.insert({Name, FileEntryRef::MapValue(*FEs.back().get(), DR)}) in addFile() 46 FileEntryRef addFileAlias(StringRef Name, FileEntryRef Base) { in addFileAlias() 47 return FileEntryRef( in addFileAlias() 50 {Name, FileEntryRef::MapValue( in addFileAlias() 54 FileEntryRef addFileRedirect(StringRef Name, FileEntryRef Base) { in addFileRedirect() 57 return FileEntryRef( in addFileRedirect() 59 .insert({Name, FileEntryRef::MapValue( in addFileRedirect() [all …]
|
H A D | SourceManagerTest.cpp | 80 FileEntryRef BuiltInFile = in TEST_F() 93 FileEntryRef CommandLineFile = FileMgr.getVirtualFileRef( in TEST_F() 106 FileEntryRef ScratchSpaceFile = FileMgr.getVirtualFileRef( in TEST_F() 310 FileEntryRef SourceFile = in TEST_F() 314 FileEntryRef HeaderFile = FileMgr.getVirtualFileRef( in TEST_F() 477 FileEntryRef HeaderFile = in TEST_F() 482 FileEntryRef BarFile = in TEST_F() 536 FileEntryRef headerFile = FileMgr.getVirtualFileRef( in MacroAction() 655 FileEntryRef headerFile = FileMgr.getVirtualFileRef( in TEST_F() 734 FileEntryRef SourceFil [all...] |
/llvm-project/clang/include/clang/Lex/ |
H A D | HeaderSearch.h | 156 virtual HeaderFileInfo GetHeaderFileInfo(FileEntryRef FE) = 0; 330 std::vector<std::pair<FileEntryRef, std::unique_ptr<HeaderMap>>> HeaderMaps; 515 StringRef Filename, FileEntryRef ContextFileEnt, 533 bool ShouldEnterIncludeFile(Preprocessor &PP, FileEntryRef File, in LookupFrameworkCache() 539 SrcMgr::CharacteristicKind getFileDirFlavor(FileEntryRef File) { 547 void MarkFileIncludeOnce(FileEntryRef File) { 553 void MarkFileSystemHeader(FileEntryRef File) { in getFileDirFlavor() 558 void MarkFileModuleHeader(FileEntryRef FE, ModuleMap::ModuleHeaderRole Role, 565 void SetFileControllingMacro(FileEntryRef File, in MarkFileSystemHeader() 575 bool isFileMultipleIncludeGuarded(FileEntryRef Fil [all...] |
H A D | ModuleMap.h | 60 virtual void moduleMapFileRead(SourceLocation FileStart, FileEntryRef File, in moduleMapFileRead() 71 virtual void moduleMapAddUmbrellaHeader(FileEntryRef Header) {} in moduleMapAddUmbrellaHeader() 200 using AdditionalModMapsSet = llvm::DenseSet<FileEntryRef>; 205 using HeadersMap = llvm::DenseMap<FileEntryRef, SmallVector<KnownHeader, 1>>; 366 HeadersMap::iterator findKnownHeader(FileEntryRef File); 375 FileEntryRef File, SmallVectorImpl<DirectoryEntryRef> &IntermediateDirs); 379 KnownHeader findOrCreateModuleForHeaderInUmbrellaDir(FileEntryRef File); 383 bool isHeaderInUmbrellaDirs(FileEntryRef File) { in isHeaderInUmbrellaDirs() 421 bool isBuiltinHeader(FileEntryRef File); 445 KnownHeader findModuleForHeader(FileEntryRef Fil [all...] |
/llvm-project/clang/lib/Basic/ |
H A D | FileManager.cpp | 215 llvm::Expected<FileEntryRef> FileManager::getFileRef(StringRef Filename, 228 return FileEntryRef(*SeenFileInsertResult.first); in getFileRef() 286 NamedFileEnt->second = FileEntryRef::MapValue(*UFE, DirInfo); in getFileRef() 300 // name-as-accessed on the \a FileEntryRef. in getFileRef() 310 // - Switch the meaning of `FileEntryRef::getName()` to get the requested in getFileRef() 325 .insert({Status.getName(), FileEntryRef::MapValue(*UFE, DirInfo)}) in getFileRef() 334 NamedFileEnt->second = FileEntryRef::MapValue(Redirection, DirInfo); in getFileRef() 337 FileEntryRef ReturnedRef(*NamedFileEnt); in getFileRef() 361 llvm::Expected<FileEntryRef> FileManager::getSTDIN() { in getSTDIN() 392 FileEntryRef FileManage in getVirtualFileRef() [all...] |
/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);
|
/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()
|
/llvm-project/clang/tools/libclang/ |
H A D | CXFile.h | 18 return CXFile(FE ? const_cast<FileEntryRef::MapEntry *>(&FE->getMapEntry()) in makeCXFile() 25 return FileEntryRef(*reinterpret_cast<const FileEntryRef::MapEntry *>(File)); in getFileEntryRef()
|
/llvm-project/clang/include/clang/Serialization/ |
H A D | ModuleFile.h | 90 llvm::PointerIntPair<const FileEntryRef::MapEntry *, 2, unsigned> Val; 95 InputFile(FileEntryRef File, bool isOverridden = false, 115 return FileEntryRef(*P); 132 ModuleFile(ModuleKind Kind, FileEntryRef File, unsigned Generation) 185 FileEntryRef File;
|
/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>
|
/llvm-project/clang-tools-extra/include-cleaner/lib/ |
H A D | FindHeaders.cpp | 105 for (FileEntryRef Export : PI->getExporters(H, SM.getFileManager())) in hintedHeadersForStdHeaders() 198 std::queue<FileEntryRef> Exporters; in findHeaders() 203 for (FileEntryRef Export : PI->getExporters(*FE, SM.getFileManager())) in findHeaders() 225 FileEntryRef Export = Exporters.front(); in findHeaders() 230 for (FileEntryRef Export : PI->getExporters(Export, SM.getFileManager())) in findHeaders()
|
/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()
|
/llvm-project/clang/lib/Lex/ |
H A D | HeaderSearch.cpp | 169 const HeaderMap *HeaderSearch::CreateHeaderMap(FileEntryRef FE) { 517 [&](FileEntryRef File) -> OptionalFileEntryRef { in LookupFile() 844 FileEntryRef IncludeFE, bool isAngled = false, in diagnoseFrameworkInclude() 1154 StringRef Filename, FileEntryRef ContextFileEnt, in LookupFile() 1306 HeaderFileInfo &HeaderSearch::getFileInfo(FileEntryRef FE) { in LookupSubframeworkHeader() 1328 const HeaderFileInfo *HeaderSearch::getExistingFileInfo(FileEntryRef FE) const { in mergeHeaderFileInfoModuleBits() 1354 HeaderSearch::getExistingLocalFileInfo(FileEntryRef FE) const { in mergeHeaderFileInfo() 1365 bool HeaderSearch::isFileMultipleIncludeGuarded(FileEntryRef File) const { 1374 void HeaderSearch::MarkFileModuleHeader(FileEntryRef FE, in getFileInfo() 1392 FileEntryRef Fil in getExistingFileInfo() [all...] |
/llvm-project/clang-tools-extra/include-cleaner/include/clang-include-cleaner/ |
H A D | Record.h | 70 llvm::SmallVector<FileEntryRef> getExporters(const FileEntry *File, 72 llvm::SmallVector<FileEntryRef> getExporters(tooling::stdlib::Header,
|
H A D | Types.h | 125 Header(FileEntryRef FE) : Storage(FE) {} in Header() 133 FileEntryRef physical() const { return std::get<Physical>(Storage); } in physical() 145 std::variant<FileEntryRef, tooling::stdlib::Header, StringRef> Storage;
|
/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()
|
/llvm-project/clang-tools-extra/clang-apply-replacements/lib/Tooling/ |
H A D | ApplyReplacements.cpp | 122 static llvm::DenseMap<FileEntryRef, std::vector<tooling::Replacement>> 126 llvm::DenseMap<FileEntryRef, std::vector<tooling::Replacement>> in groupReplacements() 193 FileEntryRef Entry = FileAndReplacements.first; in mergeAndDeduplicate()
|
/llvm-project/clang-tools-extra/include-cleaner/unittests/ |
H A D | TypesTest.cpp | 32 FileEntryRef A = FM.getVirtualFileRef("/path/a", /*Size=*/0, time_t{}); in TEST() 33 FileEntryRef B = FM.getVirtualFileRef("/path/b", /*Size=*/0, time_t{}); in TEST()
|
/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()
|
/llvm-project/clang-tools-extra/clang-tidy/ |
H A D | ExpandModularHeadersPPCallbacks.cpp | 24 void addNecessaryFile(FileEntryRef File) { in addNecessaryFile() 34 void recordFileContent(FileEntryRef File, in recordFileContent() 64 llvm::DenseSet<FileEntryRef> FilesToRecord;
|