aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg-test/util.cpp
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2020-07-06 16:45:34 -0700
committerGitHub <noreply@github.com>2020-07-06 16:45:34 -0700
commit6a41626eaf33d2f3392e06d98a94c630bfc30977 (patch)
treefb92f59f27b99c56ed48f6cae649468b4407a073 /toolsrc/src/vcpkg-test/util.cpp
parentae4968fad40e8c14541dae89c481ec32c0500426 (diff)
downloadvcpkg-6a41626eaf33d2f3392e06d98a94c630bfc30977.tar.gz
vcpkg-6a41626eaf33d2f3392e06d98a94c630bfc30977.zip
[vcpkg] Format the C++ in CI (#11655)
* [vcpkg] Format the C++ in the CI * format the C++ * CR
Diffstat (limited to 'toolsrc/src/vcpkg-test/util.cpp')
-rw-r--r--toolsrc/src/vcpkg-test/util.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/toolsrc/src/vcpkg-test/util.cpp b/toolsrc/src/vcpkg-test/util.cpp
index c0b898145..c857db5b2 100644
--- a/toolsrc/src/vcpkg-test/util.cpp
+++ b/toolsrc/src/vcpkg-test/util.cpp
@@ -1,8 +1,8 @@
#include <vcpkg/base/system_headers.h>
#include <catch2/catch.hpp>
-#include <vcpkg-test/util.h>
+#include <vcpkg-test/util.h>
#include <vcpkg/base/checks.h>
#include <vcpkg/base/files.h>
#include <vcpkg/base/util.h>
@@ -10,7 +10,6 @@
// used to get the implementation specific compiler flags (i.e., __cpp_lib_filesystem)
#include <ciso646>
-
#include <iostream>
#include <memory>
@@ -114,18 +113,20 @@ namespace vcpkg::Test
#elif !defined(_WIN32) // FILESYSTEM_SYMLINK == FILESYSTEM_SYMLINK_STD
return AllowSymlinks::Yes;
#else
- constexpr static const wchar_t regkey[] =
- LR"(SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock)";
+ constexpr static const wchar_t regkey[] = LR"(SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock)";
constexpr static const wchar_t regkey_member[] = LR"(AllowDevelopmentWithoutDevLicense)";
DWORD data;
DWORD dataSize = sizeof(data);
- const auto status = RegGetValueW(
- HKEY_LOCAL_MACHINE, regkey, regkey_member, RRF_RT_DWORD, nullptr, &data, &dataSize);
+ const auto status =
+ RegGetValueW(HKEY_LOCAL_MACHINE, regkey, regkey_member, RRF_RT_DWORD, nullptr, &data, &dataSize);
- if (status == ERROR_SUCCESS && data == 1) {
+ if (status == ERROR_SUCCESS && data == 1)
+ {
return AllowSymlinks::Yes;
- } else {
+ }
+ else
+ {
std::cout << "Symlinks are not allowed on this system\n";
return AllowSymlinks::No;
}
@@ -155,7 +156,6 @@ namespace vcpkg::Test
#endif
}
-
const fs::path& base_temporary_directory() noexcept
{
const static fs::path BASE_TEMPORARY_DIRECTORY = internal_base_temporary_directory();