Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/clang/include/clang/Basic/
H A DFileEntry.h40 class FileEntryRef; variable
60 class FileEntryRef {
77 friend bool operator==(const FileEntryRef &LHS, const FileEntryRef &RHS) {
86 friend bool operator!=(const FileEntryRef &LHS, const FileEntryRef &RHS) {
149 FileEntryRef() = delete;
173 FileEntryRef(dense_map_empty_tag)
229 return clang::FileEntryRef(clang::FileEntryRef::dense_map_empty_tag());
233 return clang::FileEntryRef(clang::FileEntryRef::dense_map_tombstone_tag());
240 static bool isEqual(clang::FileEntryRef LHS, clang::FileEntryRef RHS) {
280 : public Optional<FileEntryRef> {
[all …]
H A DFileManager.h94 llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>, llvm::BumpPtrAllocator>
101 std::unique_ptr<llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>>
105 Optional<FileEntryRef> STDIN;
221 llvm::Expected<FileEntryRef> getFileRef(StringRef Filename,
231 llvm::Expected<FileEntryRef> getSTDIN();
234 llvm::Optional<FileEntryRef> getOptionalFileRef(StringRef Filename,
255 FileEntryRef getVirtualFileRef(StringRef Filename, off_t Size,
269 llvm::Optional<FileEntryRef> getBypassFile(FileEntryRef VFE);
/llvm-project-15.0.7/clang/unittests/Basic/
H A DFileEntryTest.cpp39 FileEntryRef addFile(StringRef Name) { in addFile()
41 return FileEntryRef( in addFile()
45 FileEntryRef addFileAlias(StringRef Name, FileEntryRef Base) { in addFileAlias()
46 return FileEntryRef( in addFileAlias()
56 TEST(FileEntryTest, FileEntryRef) { in TEST() argument
58 FileEntryRef R1 = Refs.addFile("1"); in TEST()
59 FileEntryRef R2 = Refs.addFile("2"); in TEST()
93 FileEntryRef R1 = Refs.addFile("1"); in TEST()
94 FileEntryRef R2 = Refs.addFile("2"); in TEST()
114 FileEntryRef R1 = Refs.addFile("1"); in TEST()
[all …]
/llvm-project-15.0.7/clang/lib/Basic/
H A DFileManager.cpp204 llvm::Expected<FileEntryRef>
220 return FileEntryRef(*reinterpret_cast<const FileEntryRef::MapEntry *>( in getFileRef()
349 FileEntryRef ReturnedRef(*NamedFileEnt); in getFileRef()
429 return FileEntryRef(NamedFileEnt); in getVirtualFileRef()
430 return FileEntryRef(*reinterpret_cast<const FileEntryRef::MapEntry *>( in getVirtualFileRef()
472 return FileEntryRef(NamedFileEnt); in getVirtualFileRef()
489 UFE->LastRef = FileEntryRef(NamedFileEnt); in getVirtualFileRef()
495 return FileEntryRef(NamedFileEnt); in getVirtualFileRef()
498 llvm::Optional<FileEntryRef> FileManager::getBypassFile(FileEntryRef VF) { in getBypassFile()
512 return FileEntryRef(*Insertion.first); in getBypassFile()
[all …]
/llvm-project-15.0.7/clang/lib/Frontend/
H A DDependencyGraph.cpp32 llvm::SetVector<FileEntryRef> AllFiles;
34 llvm::DenseMap<FileEntryRef, SmallVector<FileEntryRef, 2>>;
51 Optional<FileEntryRef> File, StringRef SearchPath,
74 Optional<FileEntryRef> File, in InclusionDirective()
83 Optional<FileEntryRef> FromFile = in InclusionDirective()
H A DDependencyFile.cpp55 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
68 Optional<FileEntryRef> File, StringRef SearchPath, in InclusionDirective()
79 Optional<FileEntryRef> File, in HasInclude()
H A DHeaderIncludeGen.cpp49 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
188 void HeaderIncludesCallback::FileSkipped(const FileEntryRef &SkippedFile, const in FileSkipped()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousIncludeCheck.cpp28 Optional<FileEntryRef> File, StringRef SearchPath,
75 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective()
96 Optional<FileEntryRef> File = in InclusionDirective()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPCallbacks.cpp18 bool IsAngled, Optional<FileEntryRef> File, in HasInclude()
25 bool IsAngled, Optional<FileEntryRef> File, in HasInclude()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DCanonicalIncludes.h40 void addMapping(FileEntryRef Header, llvm::StringRef CanonicalPath);
46 llvm::StringRef mapHeader(FileEntryRef Header) const;
H A DIndexAction.cpp31 llvm::Optional<std::string> toURI(Optional<FileEntryRef> File) { in toURI()
88 Optional<FileEntryRef> File, in InclusionDirective()
107 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
H A DCanonicalIncludes.cpp670 void CanonicalIncludes::addMapping(FileEntryRef Header, in addMapping()
679 llvm::StringRef CanonicalIncludes::mapHeader(FileEntryRef Header) const { in mapHeader()
/llvm-project-15.0.7/clang-tools-extra/pp-trace/
H A DPPCallbacksTracker.h92 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
97 Optional<FileEntryRef> File,
182 void appendArgument(const char *Name, Optional<FileEntryRef> Value);
183 void appendArgument(const char *Name, FileEntryRef Value);
H A DPPCallbacksTracker.cpp122 void PPCallbacksTracker::FileSkipped(const FileEntryRef &SkippedFile, in FileSkipped()
136 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective()
489 Optional<FileEntryRef> Value) { in appendArgument()
497 void PPCallbacksTracker::appendArgument(const char *Name, FileEntryRef Value) { in appendArgument()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvmlibc/
H A DRestrictSystemLibcHeadersCheck.cpp37 Optional<FileEntryRef> File, StringRef SearchPath,
49 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective()
/llvm-project-15.0.7/clang/include/clang/Serialization/
H A DModuleFile.h71 llvm::PointerIntPair<const FileEntryRef::MapEntry *, 2, unsigned> Val;
76 InputFile(FileEntryRef File, bool isOverridden = false,
96 return FileEntryRef(*P); in getFile()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DKernelNameRestrictionCheck.cpp33 Optional<FileEntryRef> File, StringRef SearchPath,
65 CharSourceRange, Optional<FileEntryRef>, StringRef, StringRef, in InclusionDirective() argument
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DDirectoryLookup.h183 Optional<FileEntryRef>
192 Optional<FileEntryRef> DoFrameworkLookup(
H A DPPCallbacks.h82 virtual void FileSkipped(const FileEntryRef &SkippedFile, in FileSkipped()
132 Optional<FileEntryRef> File, in InclusionDirective()
330 Optional<FileEntryRef> File,
452 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
461 Optional<FileEntryRef> File, StringRef SearchPath, in InclusionDirective()
551 Optional<FileEntryRef> File,
H A DPreprocessingRecord.h244 Optional<FileEntryRef> File;
249 Optional<FileEntryRef> File, SourceRange Range);
267 Optional<FileEntryRef> getFile() const { return File; } in getFile()
532 Optional<FileEntryRef> File, StringRef SearchPath,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DDuplicateIncludeCheck.cpp51 Optional<FileEntryRef> File, StringRef SearchPath,
80 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DExpandModularHeadersPPCallbacks.h72 Optional<FileEntryRef> IncludedFile,
94 void HasInclude(SourceLocation Loc, StringRef, bool, Optional<FileEntryRef> ,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DDeprecatedHeadersCheck.cpp36 Optional<FileEntryRef> File, StringRef SearchPath,
182 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DIncludeOrderCheck.cpp31 Optional<FileEntryRef> File, StringRef SearchPath,
85 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp71 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
76 Optional<FileEntryRef> File, StringRef SearchPath,
169 void InclusionRewriter::FileSkipped(const FileEntryRef & /*SkippedFile*/, in FileSkipped() argument
189 Optional<FileEntryRef> /*File*/, in InclusionDirective() argument

1234