80-col violations.

llvm-svn: 118045
This commit is contained in:
Mikhail Glushenkov 2010-11-02 20:32:31 +00:00
parent fcfaf51e52
commit b4921a035e
1 changed files with 5 additions and 3 deletions

View File

@ -175,8 +175,9 @@ Path::isAbsolute(const char *NameStart, unsigned NameLen) {
case 2:
return NameStart[0] == '/';
default:
return (NameStart[0] == '/' || (NameStart[1] == ':' && NameStart[2] == '/')) ||
(NameStart[0] == '\\' || (NameStart[1] == ':' && NameStart[2] == '\\'));
return
(NameStart[0] == '/' || (NameStart[1] == ':' && NameStart[2] == '/')) ||
(NameStart[0] == '\\' || (NameStart[1] == ':' && NameStart[2] == '\\'));
}
}
@ -641,7 +642,8 @@ Path::createDirectoryOnDisk(bool create_parents, std::string* ErrMsg) {
pathname[len-1] = 0;
if (!CreateDirectory(pathname, NULL) &&
GetLastError() != ERROR_ALREADY_EXISTS) {
return MakeErrMsg(ErrMsg, std::string(pathname) + ": Can't create directory: ");
return MakeErrMsg(ErrMsg, std::string(pathname) +
": Can't create directory: ");
}
}
return false;