aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-07-27 05:53:44 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-07-27 05:53:44 +0000
commit9eb59ec548b861d6ede05b4e6dc22aabf645e665 (patch)
tree97ffa1993e23e29ccabac9646fc950717bd94dda /include/llvm/System
parent50e9ef8792c5c91b7ea6f24f878d1abbcb6024a4 (diff)
downloadexternal_llvm-9eb59ec548b861d6ede05b4e6dc22aabf645e665.zip
external_llvm-9eb59ec548b861d6ede05b4e6dc22aabf645e665.tar.gz
external_llvm-9eb59ec548b861d6ede05b4e6dc22aabf645e665.tar.bz2
Eliminate tabs and trailing spaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/Mutex.h6
-rw-r--r--include/llvm/System/Path.h56
-rw-r--r--include/llvm/System/Process.h2
3 files changed, 32 insertions, 32 deletions
diff --git a/include/llvm/System/Mutex.h b/include/llvm/System/Mutex.h
index 282e1db..5254703 100644
--- a/include/llvm/System/Mutex.h
+++ b/include/llvm/System/Mutex.h
@@ -49,7 +49,7 @@ namespace llvm
/// Attempts to release the lock. If the lock is held by the current
/// thread, the lock is released allowing other threads to acquire the
- /// lock.
+ /// lock.
/// @returns false if any kind of error occurs, true otherwise.
/// @brief Unconditionally release the lock.
bool release(void);
@@ -61,7 +61,7 @@ namespace llvm
/// available, true otherwise.
/// @brief Try to acquire the lock.
bool tryacquire();
-
+
//@}
/// @name Platform Dependent Data
/// @{
@@ -71,7 +71,7 @@ namespace llvm
/// @}
/// @name Do Not Implement
/// @{
- private:
+ private:
Mutex(const Mutex & original);
void operator=(const Mutex &);
/// @}
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index 1fd4fe2..3ff657b 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -27,20 +27,20 @@ namespace sys {
/// in the operating system's filesystem and provides various basic operations
/// on it. Note that this class only represents the name of a path to a file
/// or directory which may or may not be valid for a given machine's file
- /// system. The class is patterned after the java.io.File class with various
- /// extensions and several omissions (not relevant to LLVM). A Path object
- /// ensures that the path it encapsulates is syntactically valid for the
- /// operating system it is running on but does not ensure correctness for
- /// any particular file system. That is, a syntactically valid path might
+ /// system. The class is patterned after the java.io.File class with various
+ /// extensions and several omissions (not relevant to LLVM). A Path object
+ /// ensures that the path it encapsulates is syntactically valid for the
+ /// operating system it is running on but does not ensure correctness for
+ /// any particular file system. That is, a syntactically valid path might
/// specify path components that do not exist in the file system and using
/// such a Path to act on the file system could produce errors. There is one
- /// invalid Path value which is permitted: the empty path. The class should
- /// never allow a syntactically invalid non-empty path name to be assigned.
+ /// invalid Path value which is permitted: the empty path. The class should
+ /// never allow a syntactically invalid non-empty path name to be assigned.
/// Empty paths are required in order to indicate an error result in some
- /// situations. If the path is empty, the isValid operation will return
- /// false. All operations will fail if isValid is false. Operations that
+ /// situations. If the path is empty, the isValid operation will return
+ /// false. All operations will fail if isValid is false. Operations that
/// change the path will either return false if it would cause a syntactically
- /// invalid path name (in which case the Path object is left unchanged) or
+ /// invalid path name (in which case the Path object is left unchanged) or
/// throw an std::string exception indicating the error. The methods are
/// grouped into four basic categories: Path Accessors (provide information
/// about the path without accessing disk), Disk Accessors (provide
@@ -323,16 +323,16 @@ namespace sys {
bool isDynamicLibrary() const;
/// This function determines if the path name references an existing file
- /// or directory in the file system.
- /// @returns true if the pathname references an existing file or
+ /// or directory in the file system.
+ /// @returns true if the pathname references an existing file or
/// directory.
/// @brief Determines if the path is a file or directory in
/// the file system.
bool exists() const;
/// This function determines if the path name references a readable file
- /// or directory in the file system. This function checks for
- /// the existence and readability (by the current program) of the file
+ /// or directory in the file system. This function checks for
+ /// the existence and readability (by the current program) of the file
/// or directory.
/// @returns true if the pathname references a readable file.
/// @brief Determines if the path is a readable file or directory
@@ -340,8 +340,8 @@ namespace sys {
bool canRead() const;
/// This function determines if the path name references a writable file
- /// or directory in the file system. This function checks for the
- /// existence and writability (by the current program) of the file or
+ /// or directory in the file system. This function checks for the
+ /// existence and writability (by the current program) of the file or
/// directory.
/// @returns true if the pathname references a writable file.
/// @brief Determines if the path is a writable file or directory
@@ -349,7 +349,7 @@ namespace sys {
bool canWrite() const;
/// This function determines if the path name references an executable
- /// file in the file system. This function checks for the existence and
+ /// file in the file system. This function checks for the existence and
/// executability (by the current program) of the file.
/// @returns true if the pathname references an executable file.
/// @brief Determines if the path is an executable file in the file
@@ -400,7 +400,7 @@ namespace sys {
/// This method sets the Path object to \p unverified_path. This can fail
/// if the \p unverified_path does not pass the syntactic checks of the
- /// isValid() method. If verification fails, the Path object remains
+ /// isValid() method. If verification fails, the Path object remains
/// unchanged and false is returned. Otherwise true is returned and the
/// Path object takes on the path value of \p unverified_path
/// @returns true if the path was set, false otherwise.
@@ -417,7 +417,7 @@ namespace sys {
/// The \p component is added to the end of the Path if it is a legal
/// name for the operating system. A directory separator will be added if
- /// needed.
+ /// needed.
/// @returns false if the path component could not be added.
/// @brief Appends one path component to the Path.
bool appendComponent( const std::string& component );
@@ -469,7 +469,7 @@ namespace sys {
/// @brief Make the file readable;
void makeExecutableOnDisk();
- /// This method allows the last modified time stamp and permission bits
+ /// This method allows the last modified time stamp and permission bits
/// to be set on the disk object referenced by the Path.
/// @throws std::string if an error occurs.
/// @returns true
@@ -480,8 +480,8 @@ namespace sys {
/// same name as the Path object. The \p create_parents parameter controls
/// whether intermediate directories are created or not. if \p
/// create_parents is true, then an attempt will be made to create all
- /// intermediate directories, as needed. If \p create_parents is false,
- /// then only the final directory component of the Path name will be
+ /// intermediate directories, as needed. If \p create_parents is false,
+ /// then only the final directory component of the Path name will be
/// created. The created directory will have no entries.
/// @returns false if the Path does not reference a directory, true
/// otherwise.
@@ -507,7 +507,7 @@ namespace sys {
/// file is created. Note that this will both change the Path object
/// *and* create the corresponding file. This function will ensure that
/// the newly generated temporary file name is unique in the file system.
- /// @param reuse_current When set to true, this parameter indicates that
+ /// @param reuse_current When set to true, this parameter indicates that
/// if the current file name does not exist then it will be used without
/// modification.
/// @returns true if successful, false if the file couldn't be created.
@@ -517,18 +517,18 @@ namespace sys {
bool createTemporaryFileOnDisk(bool reuse_current = false);
/// This method renames the file referenced by \p this as \p newName. The
- /// file referenced by \p this must exist. The file referenced by
+ /// file referenced by \p this must exist. The file referenced by
/// \p newName does not need to exist.
/// @returns true
/// @throws std::string if there is an file system error.
/// @brief Rename one file as another.
bool renamePathOnDisk(const Path& newName);
- /// This method attempts to destroy the file or directory named by the
+ /// This method attempts to destroy the file or directory named by the
/// last component of the Path. If the Path refers to a directory and the
- /// \p destroy_contents is false, an attempt will be made to remove just
- /// the directory (the final Path component). If \p destroy_contents is
- /// true, an attempt will be made to remove the entire contents of the
+ /// \p destroy_contents is false, an attempt will be made to remove just
+ /// the directory (the final Path component). If \p destroy_contents is
+ /// true, an attempt will be made to remove the entire contents of the
/// directory, recursively. If the Path refers to a file, the
/// \p destroy_contents parameter is ignored.
/// @param destroy_contents Indicates whether the contents of a destroyed
diff --git a/include/llvm/System/Process.h b/include/llvm/System/Process.h
index 08a20ed..600d8d5 100644
--- a/include/llvm/System/Process.h
+++ b/include/llvm/System/Process.h
@@ -67,7 +67,7 @@ namespace sys {
/// Not all operating systems support this feature. Where it is not
/// supported, the function should return 65536 as the value.
static int GetCurrentUserId();
-
+
/// This static function will return the process' current group id number.
/// Not all operating systems support this feature. Where it is not
/// supported, the function should return 65536 as the value.