summaryrefslogtreecommitdiff
path: root/lib/System
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2004-12-31 05:07:26 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2004-12-31 05:07:26 +0000
commitd40a7de229dd4b210759a047e720ef45c7b79183 (patch)
treea4d3dfd6e43195b5d1badf5438b21671bc727ba9 /lib/System
parentebcb9b3807c5a5935eb17b6ecbba0713218b3247 (diff)
downloadllvm-d40a7de229dd4b210759a047e720ef45c7b79183.tar.gz
llvm-d40a7de229dd4b210759a047e720ef45c7b79183.tar.bz2
llvm-d40a7de229dd4b210759a047e720ef45c7b79183.tar.xz
Get rid of those nasty tabs...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Win32/Path.cpp36
-rw-r--r--lib/System/Win32/Path.inc36
2 files changed, 36 insertions, 36 deletions
diff --git a/lib/System/Win32/Path.cpp b/lib/System/Win32/Path.cpp
index 2882fd6ba0..526dc8dce7 100644
--- a/lib/System/Win32/Path.cpp
+++ b/lib/System/Win32/Path.cpp
@@ -308,7 +308,7 @@ static bool AddPermissionBits(const std::string& Filename, int bits) {
// the owner writable bit.
if ((attr & FILE_ATTRIBUTE_READONLY) && (bits & 0200)) {
if (!SetFileAttributes(Filename.c_str(), attr & ~FILE_ATTRIBUTE_READONLY))
- ThrowError(Filename + ": SetFileAttributes: ");
+ ThrowError(Filename + ": SetFileAttributes: ");
}
return true;
}
@@ -343,23 +343,23 @@ Path::getDirectoryContents(std::set<Path>& result) const {
WIN32_FIND_DATA fd;
HANDLE h = FindFirstFile(path.c_str(), &fd);
if (h == INVALID_HANDLE_VALUE) {
- if (GetLastError() == ERROR_NO_MORE_FILES)
+ if (GetLastError() == ERROR_NO_MORE_FILES)
return true; // not really an error, now is it?
- ThrowError(path + ": Can't read directory: ");
+ ThrowError(path + ": Can't read directory: ");
}
do {
- if (fd.cFileName[0] == '.')
- continue;
- Path aPath(path + &fd.cFileName[0]);
- if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
- aPath.path += "/";
+ if (fd.cFileName[0] == '.')
+ continue;
+ Path aPath(path + &fd.cFileName[0]);
+ if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
+ aPath.path += "/";
result.insert(aPath);
} while (FindNextFile(h, &fd));
CloseHandle(h);
if (GetLastError() != ERROR_NO_MORE_FILES)
- ThrowError(path + ": Can't read directory: ");
+ ThrowError(path + ": Can't read directory: ");
return true;
}
@@ -620,7 +620,7 @@ Path::renameFile(const Path& newName) {
if (!isFile()) return false;
if (!MoveFile(path.c_str(), newName.c_str()))
ThrowError("Can't move '" + path +
- "' to '" + newName.path + "': ");
+ "' to '" + newName.path + "': ");
return true;
}
@@ -631,17 +631,17 @@ Path::setStatusInfo(const StatusInfo& si) const {
HANDLE h = CreateFile(path.c_str(),
FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
- NULL,
- OPEN_EXISTING,
- FILE_ATTRIBUTE_NORMAL,
- NULL);
+ NULL,
+ OPEN_EXISTING,
+ FILE_ATTRIBUTE_NORMAL,
+ NULL);
if (h == INVALID_HANDLE_VALUE)
return false;
BY_HANDLE_FILE_INFORMATION bhfi;
if (!GetFileInformationByHandle(h, &bhfi)) {
CloseHandle(h);
- ThrowError(path + ": GetFileInformationByHandle: ");
+ ThrowError(path + ": GetFileInformationByHandle: ");
}
FILETIME ft;
@@ -656,13 +656,13 @@ Path::setStatusInfo(const StatusInfo& si) const {
if (si.mode & 0200) {
if (bhfi.dwFileAttributes & FILE_ATTRIBUTE_READONLY) {
if (!SetFileAttributes(path.c_str(),
- bhfi.dwFileAttributes & ~FILE_ATTRIBUTE_READONLY))
+ bhfi.dwFileAttributes & ~FILE_ATTRIBUTE_READONLY))
ThrowError(path + ": SetFileAttributes: ");
}
} else {
if (!(bhfi.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) {
if (!SetFileAttributes(path.c_str(),
- bhfi.dwFileAttributes | FILE_ATTRIBUTE_READONLY))
+ bhfi.dwFileAttributes | FILE_ATTRIBUTE_READONLY))
ThrowError(path + ": SetFileAttributes: ");
}
}
@@ -676,7 +676,7 @@ sys::CopyFile(const sys::Path &Dest, const sys::Path &Src) {
// above line. We use the expansion it would have in a non-UNICODE build.
if (!::CopyFileA(Src.c_str(), Dest.c_str(), false))
ThrowError("Can't copy '" + Src.toString() +
- "' to '" + Dest.toString() + "': ");
+ "' to '" + Dest.toString() + "': ");
}
void
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc
index 2882fd6ba0..526dc8dce7 100644
--- a/lib/System/Win32/Path.inc
+++ b/lib/System/Win32/Path.inc
@@ -308,7 +308,7 @@ static bool AddPermissionBits(const std::string& Filename, int bits) {
// the owner writable bit.
if ((attr & FILE_ATTRIBUTE_READONLY) && (bits & 0200)) {
if (!SetFileAttributes(Filename.c_str(), attr & ~FILE_ATTRIBUTE_READONLY))
- ThrowError(Filename + ": SetFileAttributes: ");
+ ThrowError(Filename + ": SetFileAttributes: ");
}
return true;
}
@@ -343,23 +343,23 @@ Path::getDirectoryContents(std::set<Path>& result) const {
WIN32_FIND_DATA fd;
HANDLE h = FindFirstFile(path.c_str(), &fd);
if (h == INVALID_HANDLE_VALUE) {
- if (GetLastError() == ERROR_NO_MORE_FILES)
+ if (GetLastError() == ERROR_NO_MORE_FILES)
return true; // not really an error, now is it?
- ThrowError(path + ": Can't read directory: ");
+ ThrowError(path + ": Can't read directory: ");
}
do {
- if (fd.cFileName[0] == '.')
- continue;
- Path aPath(path + &fd.cFileName[0]);
- if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
- aPath.path += "/";
+ if (fd.cFileName[0] == '.')
+ continue;
+ Path aPath(path + &fd.cFileName[0]);
+ if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
+ aPath.path += "/";
result.insert(aPath);
} while (FindNextFile(h, &fd));
CloseHandle(h);
if (GetLastError() != ERROR_NO_MORE_FILES)
- ThrowError(path + ": Can't read directory: ");
+ ThrowError(path + ": Can't read directory: ");
return true;
}
@@ -620,7 +620,7 @@ Path::renameFile(const Path& newName) {
if (!isFile()) return false;
if (!MoveFile(path.c_str(), newName.c_str()))
ThrowError("Can't move '" + path +
- "' to '" + newName.path + "': ");
+ "' to '" + newName.path + "': ");
return true;
}
@@ -631,17 +631,17 @@ Path::setStatusInfo(const StatusInfo& si) const {
HANDLE h = CreateFile(path.c_str(),
FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
- NULL,
- OPEN_EXISTING,
- FILE_ATTRIBUTE_NORMAL,
- NULL);
+ NULL,
+ OPEN_EXISTING,
+ FILE_ATTRIBUTE_NORMAL,
+ NULL);
if (h == INVALID_HANDLE_VALUE)
return false;
BY_HANDLE_FILE_INFORMATION bhfi;
if (!GetFileInformationByHandle(h, &bhfi)) {
CloseHandle(h);
- ThrowError(path + ": GetFileInformationByHandle: ");
+ ThrowError(path + ": GetFileInformationByHandle: ");
}
FILETIME ft;
@@ -656,13 +656,13 @@ Path::setStatusInfo(const StatusInfo& si) const {
if (si.mode & 0200) {
if (bhfi.dwFileAttributes & FILE_ATTRIBUTE_READONLY) {
if (!SetFileAttributes(path.c_str(),
- bhfi.dwFileAttributes & ~FILE_ATTRIBUTE_READONLY))
+ bhfi.dwFileAttributes & ~FILE_ATTRIBUTE_READONLY))
ThrowError(path + ": SetFileAttributes: ");
}
} else {
if (!(bhfi.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) {
if (!SetFileAttributes(path.c_str(),
- bhfi.dwFileAttributes | FILE_ATTRIBUTE_READONLY))
+ bhfi.dwFileAttributes | FILE_ATTRIBUTE_READONLY))
ThrowError(path + ": SetFileAttributes: ");
}
}
@@ -676,7 +676,7 @@ sys::CopyFile(const sys::Path &Dest, const sys::Path &Src) {
// above line. We use the expansion it would have in a non-UNICODE build.
if (!::CopyFileA(Src.c_str(), Dest.c_str(), false))
ThrowError("Can't copy '" + Src.toString() +
- "' to '" + Dest.toString() + "': ");
+ "' to '" + Dest.toString() + "': ");
}
void