================
@@ -134,6 +135,19 @@ class FileManager : public RefCountedBase<FileManager> {
   /// Fills the RealPathName in file entry.
   void fillRealPathName(FileEntry *UFE, llvm::StringRef FileName);
 
+  /// Implementation for getFileRef and getOptionalFileRef. Uses \c ErrorOr for
+  /// efficiency when an error will be ignored.
+  llvm::ErrorOr<FileEntryRef> getFileRefImpl(StringRef Filename, bool OpenFile,
+                                             bool CacheFailure, bool IsText);
+
+  /// Implementation for getDirectoryRef and getOptionalDirectoryRef. Uses
+  /// \c ErrorOr for efficiency when an error will be ignored.
+  llvm::ErrorOr<DirectoryEntryRef> getDirectoryRefImpl(StringRef DirName,
+                                                       bool CacheFailure);
+
+  llvm::ErrorOr<DirectoryEntryRef> getDirectoryFromFile(StringRef Filename,
----------------
benlangmuir wrote:

Good catch, migrated the doc comment from the .cpp file here and lightly 
improved it.

https://github.com/llvm/llvm-project/pull/199759
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to