14#ifndef LLVM_SUPPORT_FILE_H
15#define LLVM_SUPPORT_FILE_H
50 return LHS.get() ==
RHS.get();
bool operator==(file_t LHS, file_t RHS)
bool operator!=(file_t LHS, file_t RHS)
int value_type
A file descriptor on UNIX.
static constexpr value_type Invalid
Value for an invalid file descriptor.
file_t()
Default constructor to invalid file.
This class wraps the platform specific file handle/descriptor type to provide an unified representati...
int value_type
A file descriptor on UNIX.
bool isValid() const
Is a valid file.
static constexpr value_type Invalid
Value for an invalid file descriptor.
value_type get() const
Get the underlying value and return a platform specific value.
file_t(value_type Value)
Implicit constructor from underlying value.
file_t()
Default constructor to invalid file.