git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118683
91177308-0d34-0410-b5e6-
96231b3b80d8
Path
Path::GetLLVMDefaultConfigDir() {
Path ret = GetUserHomeDirectory();
Path
Path::GetLLVMDefaultConfigDir() {
Path ret = GetUserHomeDirectory();
- if(!ret.appendComponent(".llvm"))
+ if (!ret.appendComponent(".llvm"))
assert(0 && "Failed to append .llvm");
return ret;
}
assert(0 && "Failed to append .llvm");
return ret;
}
Path
Path::GetUserHomeDirectory() {
char buff[MAX_PATH];
Path
Path::GetUserHomeDirectory() {
char buff[MAX_PATH];
- HRESULT res = SHGetFolderPathA(NULL,
- CSIDL_FLAG_CREATE | CSIDL_APPDATA,
- NULL,
- SHGFP_TYPE_CURRENT,
- buff);
+ HRESULT res = SHGetFolderPathA(NULL,
+ CSIDL_FLAG_CREATE | CSIDL_APPDATA,
+ NULL,
+ SHGFP_TYPE_CURRENT,
+ buff);
if (res != S_OK)
assert(0 && "Failed to get user home directory");
return Path(buff);
if (res != S_OK)
assert(0 && "Failed to get user home directory");
return Path(buff);