[flang-commits] [flang] [flang][runtime] Prepare enabling PRINT of integer32 for device. (PR #86247)

via flang-commits flang-commits at lists.llvm.org
Thu Mar 21 22:21:33 PDT 2024


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 7564566779eb07e9daf41a351b09cf7607871845 bbf241f9767b69348fc93ada58b4764c5b3b127e -- flang/include/flang/Common/real.h flang/include/flang/Common/restorer.h flang/include/flang/Common/uint128.h flang/include/flang/Common/visit.h flang/include/flang/Decimal/binary-floating-point.h flang/include/flang/Decimal/decimal.h flang/include/flang/Runtime/api-attrs.h flang/include/flang/Runtime/io-api.h flang/include/flang/Runtime/iostat.h flang/include/flang/Runtime/memory.h flang/include/flang/Runtime/type-code.h flang/runtime/buffer.cpp flang/runtime/buffer.h flang/runtime/connection.cpp flang/runtime/connection.h flang/runtime/descriptor-io.cpp flang/runtime/descriptor-io.h flang/runtime/edit-input.cpp flang/runtime/edit-input.h flang/runtime/edit-output.cpp flang/runtime/edit-output.h flang/runtime/emit-encoded.h flang/runtime/environment.h flang/runtime/external-unit.cpp flang/runtime/file.cpp flang/runtime/file.h flang/runtime/format-implementation.h flang/runtime/format.cpp flang/runtime/format.h flang/runtime/freestanding-tools.h flang/runtime/internal-unit.cpp flang/runtime/internal-unit.h flang/runtime/io-api.cpp flang/runtime/io-error.cpp flang/runtime/io-error.h flang/runtime/io-stmt.cpp flang/runtime/io-stmt.h flang/runtime/iostat.cpp flang/runtime/lock.h flang/runtime/memory.cpp flang/runtime/namelist.cpp flang/runtime/namelist.h flang/runtime/non-tbp-dio.h flang/runtime/numeric-templates.h flang/runtime/pointer.cpp flang/runtime/pseudo-unit.cpp flang/runtime/terminator.h flang/runtime/unit.cpp flang/runtime/unit.h flang/runtime/utf.cpp flang/runtime/utf.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/runtime/edit-output.cpp b/flang/runtime/edit-output.cpp
index f3cd94bfe3..b710c298ba 100644
--- a/flang/runtime/edit-output.cpp
+++ b/flang/runtime/edit-output.cpp
@@ -641,8 +641,8 @@ RT_API_ATTRS bool RealOutputEditing<KIND>::EditListDirectedOutput(
 // follows that precedent so as to avoid a gratuitous incompatibility.
 template <int KIND>
 RT_API_ATTRS auto RealOutputEditing<KIND>::ConvertToHexadecimal(
-    int significantDigits, enum decimal::FortranRounding rounding, int flags)
-    -> ConvertToHexadecimalResult {
+    int significantDigits, enum decimal::FortranRounding rounding,
+    int flags) -> ConvertToHexadecimalResult {
   if (x_.IsNaN() || x_.IsInfinite()) {
     auto converted{ConvertToDecimal(significantDigits, rounding, flags)};
     return {converted.str, static_cast<int>(converted.length), 0};

``````````

</details>


https://github.com/llvm/llvm-project/pull/86247


More information about the flang-commits mailing list