[llvm-commits] CVS: llvm/lib/System/Darwin/Path.cpp

Reid Spencer reid at x10sys.com
Fri Nov 5 14:15:49 PST 2004



Changes in directory llvm/lib/System/Darwin:

Path.cpp updated: 1.4 -> 1.5
---
Log message:

Stop propagating method names that violate the coding standard

---
Diffs of the changes:  (+3 -3)

Index: llvm/lib/System/Darwin/Path.cpp
diff -u llvm/lib/System/Darwin/Path.cpp:1.4 llvm/lib/System/Darwin/Path.cpp:1.5
--- llvm/lib/System/Darwin/Path.cpp:1.4	Sat Sep 11 02:35:01 2004
+++ llvm/lib/System/Darwin/Path.cpp	Fri Nov  5 16:15:35 2004
@@ -23,7 +23,7 @@
 using namespace sys;
 
 bool 
-Path::is_valid() const {
+Path::isValid() const {
   if (path.empty()) 
     return false;
   if (path.length() >= MAXPATHLEN)
@@ -38,8 +38,8 @@
   if (0 == mkdtemp(pathname))
     ThrowErrno(std::string(pathname) + ": Can't create temporary directory");
   Path result;
-  result.set_directory(pathname);
-  assert(result.is_valid() && "mkdtemp didn't create a valid pathname!");
+  result.setDirectory(pathname);
+  assert(result.isValid() && "mkdtemp didn't create a valid pathname!");
   return result;
 }
 






More information about the llvm-commits mailing list