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

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



Changes in directory llvm/lib/System/Linux:

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/Linux/Path.cpp
diff -u llvm/lib/System/Linux/Path.cpp:1.4 llvm/lib/System/Linux/Path.cpp:1.5
--- llvm/lib/System/Linux/Path.cpp:1.4	Fri Sep 10 23:59:30 2004
+++ llvm/lib/System/Linux/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;
   char pathname[MAXPATHLEN];
@@ -40,8 +40,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