Home
last modified time | relevance | path

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

12

/external/llvm-project/clang/include/clang/Basic/
DFileEntry.h37 class FileEntryRef; variable
46 class OptionalStorage<clang::FileEntryRef, /*is_trivially_copyable*/ true>;
57 class FileEntryRef {
74 friend bool operator==(const FileEntryRef &LHS, const FileEntryRef &RHS) {
77 friend bool operator==(const FileEntry *LHS, const FileEntryRef &RHS) {
80 friend bool operator==(const FileEntryRef &LHS, const FileEntry *RHS) {
83 friend bool operator!=(const FileEntryRef &LHS, const FileEntryRef &RHS) {
86 friend bool operator!=(const FileEntry *LHS, const FileEntryRef &RHS) {
89 friend bool operator!=(const FileEntryRef &LHS, const FileEntry *RHS) {
95 friend llvm::hash_code hash_value(FileEntryRef Ref) { in hash_value()
[all …]
DFileManager.h92 llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>, llvm::BumpPtrAllocator>
99 std::unique_ptr<llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>>
216 llvm::Expected<FileEntryRef> getFileRef(StringRef Filename,
221 llvm::Optional<FileEntryRef> getOptionalFileRef(StringRef Filename,
242 FileEntryRef getVirtualFileRef(StringRef Filename, off_t Size,
256 llvm::Optional<FileEntryRef> getBypassFile(FileEntryRef VFE);
DModule.h136 llvm::PointerUnion<const FileEntryRef::MapEntry *,
165 Optional<FileEntryRef> ASTFile;
536 void setASTFile(Optional<FileEntryRef> File) { in setASTFile()
549 if (auto *ME = Umbrella.dyn_cast<const FileEntryRef::MapEntry *>()) in getUmbrellaHeader()
550 return Header{UmbrellaAsWritten, FileEntryRef(*ME)}; in getUmbrellaHeader()
DSourceManager.h873 FileID createFileID(FileEntryRef SourceFile, SourceLocation IncludePos,
988 Optional<FileEntryRef> bypassFileContentsOverride(FileEntryRef File);
/external/llvm-project/clang/unittests/Basic/
DFileEntryTest.cpp19 using FileMap = StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>;
42 FileEntryRef addFile(StringRef Name) { in addFile()
44 return FileEntryRef( in addFile()
45 *Files.insert({Name, FileEntryRef::MapValue(*FEs.back().get(), DR)}) in addFile()
48 FileEntryRef addFileAlias(StringRef Name, FileEntryRef Base) { in addFileAlias()
49 return FileEntryRef( in addFileAlias()
52 {Name, FileEntryRef::MapValue( in addFileAlias()
58 TEST(FileEntryTest, FileEntryRef) { in TEST() argument
60 FileEntryRef R1 = Refs.addFile("1"); in TEST()
61 FileEntryRef R2 = Refs.addFile("2"); in TEST()
[all …]
/external/llvm-project/clang/lib/Basic/
DFileManager.cpp203 llvm::Expected<FileEntryRef>
216 FileEntryRef::MapValue Value = *SeenFileInsertResult.first->second; in getFileRef()
218 return FileEntryRef(*SeenFileInsertResult.first); in getFileRef()
219 return FileEntryRef(*reinterpret_cast<const FileEntryRef::MapEntry *>( in getFileRef()
275 NamedFileEnt->second = FileEntryRef::MapValue(UFE, DirInfo); in getFileRef()
281 .insert({Status.getName(), FileEntryRef::MapValue(UFE, DirInfo)}) in getFileRef()
290 NamedFileEnt->second = FileEntryRef::MapValue(Redirection); in getFileRef()
296 FileEntryRef ReturnedRef(*NamedFileEnt); in getFileRef()
346 FileEntryRef FileManager::getVirtualFileRef(StringRef Filename, off_t Size, in getVirtualFileRef()
354 FileEntryRef::MapValue Value = *NamedFileEnt.second; in getVirtualFileRef()
[all …]
/external/llvm-project/clang/lib/Lex/
DPPCallbacks.cpp18 bool IsAngled, Optional<FileEntryRef> File, in HasInclude()
25 bool IsAngled, Optional<FileEntryRef> File, in HasInclude()
DHeaderSearch.cpp345 Optional<FileEntryRef> HeaderSearch::getFileAndSuggestModule( in getFileAndSuggestModule()
376 Optional<FileEntryRef> DirectoryLookup::LookupFile( in LookupFile()
438 Optional<FileEntryRef> Result = HM->LookupFile(Filename, HS.getFileMgr()); in LookupFile()
513 Optional<FileEntryRef> DirectoryLookup::DoFrameworkLookup( in DoFrameworkLookup()
754 Optional<FileEntryRef> HeaderSearch::LookupFile( in LookupFile()
793 Optional<FileEntryRef> MSFE; in LookupFile()
822 if (Optional<FileEntryRef> FE = getFileAndSuggestModule( in LookupFile()
921 Optional<FileEntryRef> File = SearchDirs[i].LookupFile( in LookupFile()
1007 Optional<FileEntryRef> File = LookupFile( in LookupFile()
1044 Optional<FileEntryRef> HeaderSearch::LookupSubframeworkHeader( in LookupSubframeworkHeader()
DPPDirectives.cpp721 Optional<FileEntryRef> Preprocessor::LookupFile( in LookupFile()
782 while (Optional<FileEntryRef> FE = HeaderInfo.LookupFile( in LookupFile()
800 Optional<FileEntryRef> FE = HeaderInfo.LookupFile( in LookupFile()
818 if (Optional<FileEntryRef> FE = HeaderInfo.LookupSubframeworkHeader( in LookupFile()
833 if (Optional<FileEntryRef> FE = HeaderInfo.LookupSubframeworkHeader( in LookupFile()
1724 Optional<FileEntryRef> Preprocessor::LookupHeaderIncludeOrImport( in LookupHeaderIncludeOrImport()
1732 Optional<FileEntryRef> File = LookupFile( in LookupHeaderIncludeOrImport()
1750 Optional<FileEntryRef> File = LookupFile( in LookupHeaderIncludeOrImport()
1769 Optional<FileEntryRef> File = LookupFile( in LookupHeaderIncludeOrImport()
1800 Optional<FileEntryRef> File = LookupFile( in LookupHeaderIncludeOrImport()
[all …]
DHeaderMap.cpp199 Optional<FileEntryRef> HeaderMap::LookupFile(StringRef Filename, in LookupFile()
/external/llvm-project/clang/include/clang/Serialization/
DModuleFile.h70 llvm::PointerIntPair<const FileEntryRef::MapEntry *, 2, unsigned> Val;
75 InputFile(FileEntryRef File, bool isOverridden = false,
95 return FileEntryRef(*P); in getFile()
DModuleManager.h311 time_t ExpectedModTime, Optional<FileEntryRef> &File);
/external/llvm-project/clang/include/clang/Lex/
DDirectoryLookup.h179 Optional<FileEntryRef>
188 Optional<FileEntryRef> DoFrameworkLookup(
DPPCallbacks.h60 virtual void FileSkipped(const FileEntryRef &SkippedFile, in FileSkipped()
310 Optional<FileEntryRef> File,
393 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
493 Optional<FileEntryRef> File,
DHeaderMap.h80 Optional<FileEntryRef> LookupFile(StringRef Filename, FileManager &FM) const;
DHeaderSearch.h401 Optional<FileEntryRef> LookupFile(
416 Optional<FileEntryRef> LookupSubframeworkHeader(
691 Optional<FileEntryRef>
DModuleMap.h331 Optional<FileEntryRef>
651 void setUmbrellaHeader(Module *Mod, FileEntryRef UmbrellaHeader,
/external/llvm-project/clang/lib/Frontend/
DDependencyFile.cpp57 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
81 Optional<FileEntryRef> File, in HasInclude()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousIncludeCheck.cpp97 Optional<FileEntryRef> File = in InclusionDirective()
/external/llvm-project/clang-tools-extra/clang-tidy/
DExpandModularHeadersPPCallbacks.h93 void HasInclude(SourceLocation Loc, StringRef, bool, Optional<FileEntryRef> ,
DExpandModularHeadersPPCallbacks.cpp226 bool, Optional<FileEntryRef>, in HasInclude() argument
/external/llvm-project/clang/lib/Serialization/
DModuleManager.cpp463 Optional<FileEntryRef> &File) { in lookupModuleFile()
470 Optional<FileEntryRef> FileOrErr = in lookupModuleFile()
/external/llvm-project/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp75 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
174 void InclusionRewriter::FileSkipped(const FileEntryRef & /*SkippedFile*/, in FileSkipped() argument
/external/llvm-project/clang-tools-extra/pp-trace/
DPPCallbacksTracker.h92 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
/external/llvm-project/clang-tools-extra/clangd/index/
DIndexAction.cpp107 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()

12