Home
last modified time | relevance | path

Searched refs:FileEntry (Results 1 – 25 of 98) sorted by relevance

1234

/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DFileEntry.h24 struct FileEntry { struct
32 FileEntry() = default; argument
33 FileEntry(uint32_t D, uint32_t B) : Dir(D), Base(B) {} in FileEntry() argument
37 bool operator==(const FileEntry &RHS) const {
40 bool operator!=(const FileEntry &RHS) const {
47 template <> struct DenseMapInfo<gsym::FileEntry> {
48 static inline gsym::FileEntry getEmptyKey() {
50 return gsym::FileEntry(key, key);
52 static inline gsym::FileEntry getTombstoneKey() {
54 return gsym::FileEntry(key, key);
[all …]
H A DGsymReader.h13 #include "llvm/DebugInfo/GSYM/FileEntry.h"
54 ArrayRef<FileEntry> Files;
64 std::vector<FileEntry> Files;
169 std::optional<FileEntry> getFile(uint32_t Index) const {
254 /// Dump a FileEntry object. in addressForIndex()
262 void dump(raw_ostream &OS, std::optional<FileEntry> FE);
H A DGsymCreator.h20 #include "llvm/DebugInfo/GSYM/FileEntry.h"
108 /// FileEntry Files[];
112 /// used in all of the function info, followed by that number of FileEntry
114 /// the file table is represented with a FileEntry structure.
115 /// See "llvm/DebugInfo/GSYM/FileEntry.h" for details.
140 DenseMap<llvm::gsym::FileEntry, uint32_t> FileEntryToIndex;
143 std::vector<llvm::gsym::FileEntry> Files;
248 /// Inserts a FileEntry into the file table.
254 uint32_t insertFileEntry(FileEntry FE);
344 /// Inserts a file by adding a FileEntry int
[all...]
/llvm-project/clang/include/clang/Basic/
H A DFileEntry.h1 //===- clang/Basic/FileEntry.h - File references ----------------*- C++ -*-===//
10 /// Defines interfaces for clang::FileEntry and clang::FileEntryRef.
53 class FileEntry; variable
55 /// A reference to a \c FileEntry that includes the name of the file as it was
59 /// The name of this FileEntry. If a VFS uses 'use-external-name', this is
63 /// The name of this FileEntry, as originally requested without applying any
70 const FileEntry &getFileEntry() const { in getFileEntry()
71 return *cast<FileEntry *>(getBaseMapEntry().second->V); in getFileEntry()
87 /// Check if the underlying FileEntry is the same, intentially ignoring
92 friend bool operator==(const FileEntry *LH
[all...]
H A DFileManager.h18 #include "clang/Basic/FileEntry.h"
56 llvm::SpecificBumpPtrAllocator<FileEntry> FilesAlloc;
63 llvm::DenseMap<llvm::sys::fs::UniqueID, FileEntry *> UniqueRealFiles;
71 SmallVector<FileEntry *, 4> VirtualFileEntries;
75 SmallVector<FileEntry *, 0> BypassFileEntries;
113 /// Each FileEntry we create is assigned a unique ID #.
135 void fillRealPathName(FileEntry *UFE, llvm::StringRef FileName);
206 /// If there is no error, the FileEntry is guaranteed to be non-NULL.
212 LLVM_DEPRECATED("Functions returning FileEntry are deprecated.",
214 llvm::ErrorOr<const FileEntry *>
[all...]
H A DSourceManager.h38 #include "clang/Basic/FileEntry.h"
139 /// This reference does not own the FileEntry object.
229 /// file this size is retrieved from the file's FileEntry.
675 /// on their FileEntry*. All ContentCache objects will thus have unique,
676 /// non-null, FileEntry pointers.
695 llvm::DenseMap<const FileEntry *, FileEntryRef> OverriddenFiles;
698 llvm::DenseSet<const FileEntry *> OverriddenFilesWithBuffer;
713 /// All FileEntry* within the stored ContentCache objects are NULL,
895 /// Returns true when the given FileEntry corresponds to the main file.
898 bool isMainFile(const FileEntry
[all...]
/llvm-project/clang/lib/Basic/
H A DFileEntry.cpp20 FileEntry::FileEntry() : UniqueID(0, 0) {} in FileEntry() function in FileEntry
22 FileEntry::~FileEntry() = default;
24 void FileEntry::closeFile() const { File.reset(); } in closeFile()
H A DFileManager.cpp207 llvm::ErrorOr<const FileEntry *>
279 FileEntry *&UFE = UniqueRealFiles[Status.getUniqueID()]; in getFileRef()
282 UFE = new (FilesAlloc.Allocate()) FileEntry(); in getFileRef()
285 // Use the requested name. Set the FileEntry. in getFileRef()
327 assert(isa<FileEntry *>(Redirection.second->V) && in getFileRef()
329 assert(cast<FileEntry *>(Redirection.second->V) == UFE && in getFileRef()
374 FileEntry &FE = const_cast<FileEntry &>(STDIN->getFileEntry()); in getSTDIN()
387 const FileEntry *FileManager::getVirtualFile(StringRef Filename, off_t Size, in getVirtualFile()
401 if (LLVM_LIKELY(isa<FileEntry *>(Valu in getVirtualFileRef()
[all...]
/llvm-project/clang-tools-extra/include-cleaner/include/clang-include-cleaner/
H A DRecord.h36 class FileEntry; variable
62 bool shouldKeep(const FileEntry *FE) const;
66 llvm::StringRef getPublic(const FileEntry *File) const;
70 llvm::SmallVector<FileEntryRef> getExporters(const FileEntry *File,
76 bool isSelfContained(const FileEntry *File) const;
79 bool isPrivate(const FileEntry *File) const;
/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugLine.cpp160 const FileNameEntry &FileEntry = FileNames[I]; in dump() local
163 FileEntry.Name.dump(OS, DumpOptions); in dump()
164 OS << '\n' << format(" dir_index: %" PRIu64 "\n", FileEntry.DirIdx); in dump()
166 OS << " md5_checksum: " << FileEntry.Checksum.digest() << '\n'; in dump()
168 OS << format(" mod_time: 0x%8.8" PRIx64 "\n", FileEntry.ModTime); in dump()
170 OS << format(" length: 0x%8.8" PRIx64 "\n", FileEntry.Length); in dump()
172 auto Source = FileEntry.Source.getAsCString(); in dump()
177 FileEntry.Source.dump(OS, DumpOptions); in dump()
217 DWARFDebugLine::FileNameEntry FileEntry; in parseV2DirFileTables()
218 FileEntry in parseV2DirFileTables() local
316 DWARFDebugLine::FileNameEntry FileEntry; parseV5DirFileTables() local
997 FileNameEntry FileEntry; parse() local
[all...]
/llvm-project/clang-tools-extra/clang-tidy/abseil/
H A DAbseilMatcher.h37 OptionalFileEntryRef FileEntry = in AST_POLYMORPHIC_MATCHER() local
39 if (!FileEntry) in AST_POLYMORPHIC_MATCHER()
43 StringRef Path = FileEntry->getName(); in AST_POLYMORPHIC_MATCHER()
/llvm-project/clang/include/clang/Serialization/
H A DModuleManager.h36 class FileEntry; variable
61 llvm::DenseMap<const FileEntry *, ModuleFile *> Modules;
77 llvm::DenseMap<const FileEntry *, std::unique_ptr<llvm::MemoryBuffer>>
182 ModuleFile *lookup(const FileEntry *File) const;
/llvm-project/polly/lib/External/isl/interface/
H A Dextract_interface.cc407 static void create_main_file_id(SourceManager &SM, const FileEntry *file) in create_main_file_id()
415 static void create_main_file_id(SourceManager &SM, const FileEntry *file) in create_main_file_id()
469 static const FileEntry *ignore_error_helper(const T obj, int, in ignore_error_helper()
480 static const FileEntry *ignore_error_helper(const T obj, long, void *) in ignore_error_helper()
489 static const FileEntry *ignore_error(const T obj) in ignore_error()
497 static const FileEntry *getFile(CompilerInstance *Clang, std::string Filename) in getFile()
574 const FileEntry *file = getFile(Clang, InputFilename); in main()
/llvm-project/clang/include/clang/APINotes/
H A DAPINotesYAMLCompiler.h17 class FileEntry; variable
28 bool compileAPINotes(llvm::StringRef YAMLInput, const FileEntry *SourceFile,
H A DAPINotesWriter.h26 class FileEntry; variable
39 APINotesWriter(llvm::StringRef ModuleName, const FileEntry *SF);
/llvm-project/clang/tools/libclang/
H A DCIndexHigh.cpp214 const FileEntry *File, in findIdRefsInFile()
247 const FileEntry *File;
251 FindFileMacroRefVisitData(ASTUnit &Unit, const FileEntry *File, in FindFileMacroRefVisitData()
308 const FileEntry *File, in findMacroRefsInFile()
341 const FileEntry *File;
344 FindFileIncludesVisitor(ASTUnit &Unit, const FileEntry *File, in FindFileIncludesVisitor()
382 static bool findIncludesInFile(CXTranslationUnit TU, const FileEntry *File, in findIncludesInFile()
/llvm-project/clang/
H A DNOTES.txt24 1. FileEntry contains a sys::Path instead of a std::string for Name.
26 FileEntry.
28 These changes make it possible to efficiently have FileEntry objects for
37 3. Reading the dir uses the getdirentries syscall, creating a FileEntry
/llvm-project/clang/include/clang/InstallAPI/
H A DContext.h72 std::optional<HeaderType> findAndRecordFile(const FileEntry *FE,
76 using HeaderMap = llvm::DenseMap<const FileEntry *, HeaderType>;
/llvm-project/clang/unittests/Basic/
H A DFileEntryTest.cpp23 SmallVector<std::unique_ptr<FileEntry>, 5> FEs;
41 FEs.emplace_back(new FileEntry()); in addFile()
51 const_cast<FileEntry &>(Base.getFileEntry()), DR)}) in addFileAlias()
91 const FileEntry *CE1 = R1; in TEST()
/llvm-project/clang/include/clang/Lex/
H A DModuleMap.h41 class FileEntry; variable
291 llvm::DenseMap<const FileEntry *, bool> ParsedModuleMap;
465 void resolveHeaderDirectives(const FileEntry *File) const;
471 std::optional<const FileEntry *> File) const;
H A DHeaderSearch.h47 class FileEntry; variable
286 /// included, indexed by the FileEntry's UID.
329 /// This is a mapping from FileEntry -> HeaderMap, uniquing headermaps.
340 llvm::DenseMap<const FileEntry *, bool> LoadedModuleMaps;
343 llvm::DenseMap<const FileEntry *, llvm::SmallString<64>> IncludeNames;
513 /// the FileEntry for the designated file, otherwise return null.
596 /// FileEntry, uniquing them through the 'HeaderMaps' datastructure.
828 /// Return the HeaderFileInfo structure for the specified FileEntry, in
832 /// Return the HeaderFileInfo structure for the specified FileEntry, if it has
836 /// Return the headerFileInfo structure for the specified FileEntry, i
[all...]
/llvm-project/clang-tools-extra/include-cleaner/lib/
H A DRecord.cpp413 llvm::StringRef PragmaIncludes::getPublic(const FileEntry *F) const { in getPublic()
432 PragmaIncludes::getExporters(const FileEntry *File, FileManager &FM) const { in getExporters()
448 bool PragmaIncludes::isSelfContained(const FileEntry *FE) const { in isSelfContained()
452 bool PragmaIncludes::isPrivate(const FileEntry *FE) const { in isPrivate()
456 bool PragmaIncludes::shouldKeep(const FileEntry *FE) const { in shouldKeep()
/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DGsymCreator.cpp32 // We must insert the strings first, then call the FileEntry constructor. in insertFile()
38 return insertFileEntry(FileEntry(Dir, Base)); in insertFile()
41 uint32_t GsymCreator::insertFileEntry(FileEntry FE) { in insertFileEntry()
52 // File index zero is reserved for a FileEntry with no directory and no in copyFile()
57 const FileEntry SrcFE = SrcGC.Files[FileIdx]; in copyFile()
64 FileEntry DstFE(Dir, Base); in copyFile()
490 Size += Files.size() * sizeof(FileEntry); in saveSegments()
/llvm-project/clang/include/clang/Frontend/
H A DVerifyDiagnosticConsumer.h28 class FileEntry; variable
144 using ParsedFilesMap = llvm::DenseMap<FileID, const FileEntry *>;
/llvm-project/clang/lib/Frontend/
H A DDependencyGraph.cpp40 const FileEntry *Node);
113 const FileEntry *Node) { in writeNodeReference()

1234