[libcxx-commits] [libcxx] [libcxx] Use _ftelli64/_fseeki64 on Windows (PR #123128)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 28 04:02:40 PST 2025
Martin =?utf-8?q?Storsjö?= <martin at martin.st>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/123128 at github.com>
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 4a4a8a1476b1386b523dc5b292ba9a5a6748a9cf fa21664ba0f17e5e0ca91da959d9e2fdfafe4436 --extensions ,cpp -- libcxx/include/fstream libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/offset_range.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/fstream b/libcxx/include/fstream
index b9f1bccf3c..6f00d6d455 100644
--- a/libcxx/include/fstream
+++ b/libcxx/include/fstream
@@ -947,8 +947,7 @@ basic_filebuf<_CharT, _Traits>::seekoff(off_type __off, ios_base::seekdir __way,
}
template <class _CharT, class _Traits>
-int
-basic_filebuf<_CharT, _Traits>::__fseek(FILE* __file, pos_type __offset, int __whence) {
+int basic_filebuf<_CharT, _Traits>::__fseek(FILE* __file, pos_type __offset, int __whence) {
# if defined(_LIBCPP_MSVCRT_LIKE)
return _fseeki64(__file, __offset, __whence);
# elif !_LIBCPP_HAS_OFF_T_FUNCTIONS
@@ -959,8 +958,7 @@ basic_filebuf<_CharT, _Traits>::__fseek(FILE* __file, pos_type __offset, int __w
}
template <class _CharT, class _Traits>
-typename basic_filebuf<_CharT, _Traits>::pos_type
-basic_filebuf<_CharT, _Traits>::__ftell(FILE* __file) {
+typename basic_filebuf<_CharT, _Traits>::pos_type basic_filebuf<_CharT, _Traits>::__ftell(FILE* __file) {
# if defined(_LIBCPP_MSVCRT_LIKE)
return _ftelli64(__file);
# elif !_LIBCPP_HAS_OFF_T_FUNCTIONS
``````````
</details>
https://github.com/llvm/llvm-project/pull/123128
More information about the libcxx-commits
mailing list