[llvm-commits] CVS: llvm/include/llvm/System/Path.h

Reid Spencer reid at x10sys.com
Tue Aug 22 23:56:48 PDT 2006



Changes in directory llvm/include/llvm/System:

Path.h updated: 1.38 -> 1.39
---
Log message:

For PR797: http://llvm.org/PR797 :
Remove exception throwing from Path::getDirectoryContents and its users.


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

 Path.h |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/System/Path.h
diff -u llvm/include/llvm/System/Path.h:1.38 llvm/include/llvm/System/Path.h:1.39
--- llvm/include/llvm/System/Path.h:1.38	Tue Aug 22 19:39:34 2006
+++ llvm/include/llvm/System/Path.h	Wed Aug 23 01:56:27 2006
@@ -343,10 +343,12 @@
 
       /// This function builds a list of paths that are the names of the
       /// files and directories in a directory.
-      /// @returns false if \p this is not a directory, true otherwise
-      /// @throws std::string if the directory cannot be searched
+      /// @returns true if an error occurs, true otherwise
       /// @brief Build a list of directory's contents.
-      bool getDirectoryContents(std::set<Path> &paths) const;
+      bool getDirectoryContents(
+        std::set<Path> &paths, ///< The resulting list of file & directory names
+        std::string* ErrMsg    ///< Optional place to return an error message.
+      ) const;
 
       /// This function returns status information about the file. The type of
       /// path (file or directory) is updated to reflect the actual contents






More information about the llvm-commits mailing list