aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorNicole Mazzuca <mazzucan@outlook.com>2019-08-10 11:57:15 -0700
committernicole mazzuca <mazzucan@outlook.com>2019-08-10 13:13:21 -0700
commit420dbffaa0f7138ecc935aa06138d46a19b4ce6f (patch)
tree2229e4056d975842cae8a991f4ac7ae8e23dd72e /toolsrc/include
parenta6ae888f4ef69cda5212e7459debf6b620fa4a69 (diff)
downloadvcpkg-420dbffaa0f7138ecc935aa06138d46a19b4ce6f.tar.gz
vcpkg-420dbffaa0f7138ecc935aa06138d46a19b4ce6f.zip
clang-format, and fix a leftover
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/files.h28
1 files changed, 6 insertions, 22 deletions
diff --git a/toolsrc/include/vcpkg/base/files.h b/toolsrc/include/vcpkg/base/files.h
index 2b33835c0..e9d3d33bf 100644
--- a/toolsrc/include/vcpkg/base/files.h
+++ b/toolsrc/include/vcpkg/base/files.h
@@ -54,22 +54,15 @@ namespace fs
using stdfs::file_type;
// to set up ADL correctly on `file_status` objects, we are defining
// this in our own namespace
- struct file_status : private stdfs::file_status {
+ struct file_status : private stdfs::file_status
+ {
using stdfs::file_status::file_status;
- using stdfs::file_status::type;
using stdfs::file_status::permissions;
+ using stdfs::file_status::type;
};
#endif
- /*
- std::experimental::filesystem's file_status and file_type are broken in
- the presence of symlinks -- a symlink is treated as the object it points
- to for `symlink_status` and `symlink_type`
- */
- #if 0
- #endif
-
inline bool is_symlink(file_status s) noexcept
{
#if defined(_WIN32)
@@ -77,18 +70,9 @@ namespace fs
#endif
return s.type() == file_type::symlink;
}
- inline bool is_regular_file(file_status s)
- {
- return s.type() == file_type::regular;
- }
- inline bool is_directory(file_status s)
- {
- return s.type() == file_type::directory;
- }
- inline bool exists(file_status s)
- {
- return s.type() != file_type::not_found && s.type() != file_type::none;
- }
+ inline bool is_regular_file(file_status s) { return s.type() == file_type::regular; }
+ inline bool is_directory(file_status s) { return s.type() == file_type::directory; }
+ inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
}
/*