[llvm] r200354 - Finish bringing file_type to the llvm style (other than its name).

Rafael Espindola rafael.espindola at gmail.com
Tue Jan 28 15:36:39 PST 2014


Author: rafael
Date: Tue Jan 28 17:36:39 2014
New Revision: 200354

URL: http://llvm.org/viewvc/llvm-project?rev=200354&view=rev
Log:
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.

Modified:
    llvm/trunk/include/llvm/Support/FileSystem.h

Modified: llvm/trunk/include/llvm/Support/FileSystem.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FileSystem.h?rev=200354&r1=200353&r2=200354&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/FileSystem.h (original)
+++ llvm/trunk/include/llvm/Support/FileSystem.h Tue Jan 28 17:36:39 2014
@@ -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.





More information about the llvm-commits mailing list