Lines Matching refs:llvm

17 #include "llvm/ADT/IntrusiveRefCntPtr.h"
18 #include "llvm/ADT/Optional.h"
19 #include "llvm/Support/ErrorOr.h"
20 #include "llvm/Support/FileSystem.h"
21 #include "llvm/Support/raw_ostream.h"
22 #include "llvm/Support/SourceMgr.h"
24 namespace llvm {
34 llvm::sys::fs::UniqueID UID;
35 llvm::sys::TimeValue MTime;
39 llvm::sys::fs::file_type Type;
40 llvm::sys::fs::perms Perms;
46 Status() : Type(llvm::sys::fs::file_type::status_error) {}
47 Status(const llvm::sys::fs::file_status &Status);
48 Status(StringRef Name, StringRef RealName, llvm::sys::fs::UniqueID UID,
49 llvm::sys::TimeValue MTime, uint32_t User, uint32_t Group,
50 uint64_t Size, llvm::sys::fs::file_type Type,
51 llvm::sys::fs::perms Perms);
57 /// @name Status interface from llvm::sys::fs
59 llvm::sys::fs::file_type getType() const { return Type; }
60 llvm::sys::fs::perms getPermissions() const { return Perms; }
61 llvm::sys::TimeValue getLastModificationTime() const { return MTime; }
62 llvm::sys::fs::UniqueID getUniqueID() const { return UID; }
66 void setType(llvm::sys::fs::file_type v) { Type = v; }
67 void setPermissions(llvm::sys::fs::perms p) { Perms = p; }
70 /// These are static queries in llvm::sys::fs.
90 virtual llvm::ErrorOr<Status> status() = 0;
93 std::unique_ptr<llvm::MemoryBuffer> &Result,
116 /// llvm::sys::fs::directory_iterator.
155 /// similar to llvm::sys::fs::recursive_directory_iterator.
184 class FileSystem : public llvm::ThreadSafeRefCountedBase<FileSystem> {
189 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0;
197 std::unique_ptr<llvm::MemoryBuffer> &Result,
233 llvm::ErrorOr<Status> status(const Twine &Path) override;
249 llvm::sys::fs::UniqueID getNextVirtualUniqueID();
256 getVFSFromYAML(llvm::MemoryBuffer *Buffer,
257 llvm::SourceMgr::DiagHandlerTy DiagHandler,
278 void write(llvm::raw_ostream &OS);