summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-28 23:36:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-28 23:36:39 +0000
commit86b8fac58a92101809928dc80e53a662eeed525d (patch)
tree343dce6de9a20022ab083a30318a05481ddca378
parentffcc42764e6915c99e9118285f699701126b7063 (diff)
downloadllvm-86b8fac58a92101809928dc80e53a662eeed525d.tar.gz
llvm-86b8fac58a92101809928dc80e53a662eeed525d.tar.bz2
llvm-86b8fac58a92101809928dc80e53a662eeed525d.tar.xz
Finish bringing file_type to the llvm style (other than its name).
I assume that the name is file_type because it is the name of a c++11 type that we will use once we convert, but at least our current implementation can look like llvm code. Thanks to David Blakie for the push. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200354 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/FileSystem.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index a87011c9bd..032b5bef6a 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/include/llvm/Support/FileSystem.h
@@ -49,10 +49,9 @@ namespace llvm {
namespace sys {
namespace fs {
-/// file_type - An "enum class" enumeration for the file system's view of the
-/// type.
+/// An "enum class" enumeration for the file system's view of the type.
struct file_type {
- enum _ {
+ enum Impl {
status_error,
file_not_found,
regular_file,
@@ -65,11 +64,11 @@ struct file_type {
type_unknown
};
- file_type(_ v) : v_(v) {}
- operator _() const {return v_;}
+ file_type(Impl V) : V(V) {}
+ operator Impl() const { return V; }
private:
- _ v_;
+ Impl V;
};
/// space_info - Self explanatory.