[flang-commits] [flang] [llvm] [flang] Round COMPLEX(4)**INTEGER to single precision once (PR #230257)
via flang-commits
flang-commits at lists.llvm.org
Mon Oct 19 12:48:29 PDT 2026
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 origin/main HEAD --extensions cpp,h -- flang-rt/lib/runtime/complex-powi.cpp flang-rt/unittests/Runtime/Complex.cpp flang/include/flang/Common/api-attrs.h flang/lib/Evaluate/fold-implementation.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/include/flang/Common/api-attrs.h b/flang/include/flang/Common/api-attrs.h
index fdd106913..76e7a2dcc 100644
--- a/flang/include/flang/Common/api-attrs.h
+++ b/flang/include/flang/Common/api-attrs.h
@@ -204,11 +204,11 @@
#if defined(_MSC_VER) && !defined(__clang__)
#define RT_FORCE_INLINE_ATTR __forceinline
#elif defined(__has_attribute)
-# if __has_attribute(always_inline)
-# define RT_FORCE_INLINE_ATTR inline __attribute__((always_inline))
-# else
-# define RT_FORCE_INLINE_ATTR inline
-# endif
+#if __has_attribute(always_inline)
+#define RT_FORCE_INLINE_ATTR inline __attribute__((always_inline))
+#else
+#define RT_FORCE_INLINE_ATTR inline
+#endif
#else
#define RT_FORCE_INLINE_ATTR inline
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/230257
More information about the flang-commits
mailing list