[flang-commits] [flang] flang: Fix build with latest libc++ (PR #127362)
via flang-commits
flang-commits at lists.llvm.org
Sat Feb 15 17:37:28 PST 2025
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 6ff8a06de9ce125023e117014ce4dca8fcc391d7 e8e1e76b1f40ff17dfedfcb2d32f86c4282b0533 --extensions cpp -- flang/runtime/io-api-minimal.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/runtime/io-api-minimal.cpp b/flang/runtime/io-api-minimal.cpp
index e53089e02d..a661261535 100644
--- a/flang/runtime/io-api-minimal.cpp
+++ b/flang/runtime/io-api-minimal.cpp
@@ -151,11 +151,11 @@ bool IODEF(OutputLogical)(Cookie cookie, bool truth) {
// on the version provided by libc++.
#if !defined(_LIBCPP_VERBOSE_ABORT_NOEXCEPT)
- #define _LIBCPP_VERBOSE_ABORT_NOEXCEPT
+#define _LIBCPP_VERBOSE_ABORT_NOEXCEPT
#endif
-
-void std::__libcpp_verbose_abort(char const *format, ...) _LIBCPP_VERBOSE_ABORT_NOEXCEPT {
+void std::__libcpp_verbose_abort(
+ char const *format, ...) _LIBCPP_VERBOSE_ABORT_NOEXCEPT {
va_list list;
va_start(list, format);
std::vfprintf(stderr, format, list);
``````````
</details>
https://github.com/llvm/llvm-project/pull/127362
More information about the flang-commits
mailing list