diff options
author | mikhnenko <[email protected]> | 2023-09-20 00:17:28 +0300 |
---|---|---|
committer | mikhnenko <[email protected]> | 2023-09-20 00:37:19 +0300 |
commit | 38d353cb704b884242efe1e8f0d34d2420de4488 (patch) | |
tree | 03f4e032f028b493a384b8c9b75f160f81ce6a77 /contrib/libs/cxxsupp/libcxx/src/filesystem | |
parent | 9fe06a35ce2c80f49c89bebe61b09ab4f4213ecf (diff) |
Put libc++ under ym2
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/src/filesystem')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h | 12 | ||||
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/src/filesystem/operations.cpp | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h b/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h index dffce1895cd..f6ba686b417 100644 --- a/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h +++ b/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h @@ -83,14 +83,14 @@ format_string_impl(const char* msg, va_list ap) { if (static_cast<size_t>(ret) < buf.size()) { result.assign(buf.data(), static_cast<size_t>(ret)); } else { - // we did not provide a long enough buffer on our first attempt. The - // return value is the number of bytes (excluding the null byte) that are - // needed for formatting. + // we did not provide a long enough buffer on our first attempt. The + // return value is the number of bytes (excluding the null byte) that are + // needed for formatting. size_t size_with_null = static_cast<size_t>(ret) + 1; - result.__resize_default_init(size_with_null - 1); + result.__resize_default_init(size_with_null - 1); ret = ::vsnprintf(&result[0], size_with_null, msg, ap); - _LIBCPP_ASSERT(static_cast<size_t>(ret) == (size_with_null - 1), "TODO"); -} + _LIBCPP_ASSERT(static_cast<size_t>(ret) == (size_with_null - 1), "TODO"); + } return result; } diff --git a/contrib/libs/cxxsupp/libcxx/src/filesystem/operations.cpp b/contrib/libs/cxxsupp/libcxx/src/filesystem/operations.cpp index e19d042f878..9e0abc83b10 100644 --- a/contrib/libs/cxxsupp/libcxx/src/filesystem/operations.cpp +++ b/contrib/libs/cxxsupp/libcxx/src/filesystem/operations.cpp @@ -999,7 +999,7 @@ void __copy_symlink(const path& existing_symlink, const path& new_symlink, __create_directory_symlink(real_path, new_symlink, ec); else #endif - __create_symlink(real_path, new_symlink, ec); + __create_symlink(real_path, new_symlink, ec); } bool __create_directories(const path& p, error_code* ec) { @@ -1070,7 +1070,7 @@ bool __create_directory(path const& p, path const& attributes, error_code* ec) { return err.report(capture_errno()); mec = capture_errno(); - error_code ignored_ec; + error_code ignored_ec; st = status(p, ignored_ec); if (!is_directory(st)) return err.report(mec); |