[flang] [llvm] [flang] Extension: allow char string edit descriptors in input formats (PR #140624)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 19 14:34:00 PDT 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 HEAD~1 HEAD --extensions h,cpp -- flang-rt/include/flang-rt/runtime/format-implementation.h flang-rt/unittests/Runtime/NumericalFormatTest.cpp flang/include/flang/Common/format.h
``````````

</details>

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

``````````diff
diff --git a/flang-rt/unittests/Runtime/NumericalFormatTest.cpp b/flang-rt/unittests/Runtime/NumericalFormatTest.cpp
index 58852d3c3..f1492d0e3 100644
--- a/flang-rt/unittests/Runtime/NumericalFormatTest.cpp
+++ b/flang-rt/unittests/Runtime/NumericalFormatTest.cpp
@@ -882,7 +882,7 @@ TEST(IOApiTests, EditDoubleInputValues) {
       {"(F18.1)", "               125", 0x4029000000000000, 0},
       {"(F18.2)", "               125", 0x3ff4000000000000, 0},
       {"(F18.3)", "               125", 0x3fc0000000000000, 0},
-      {"('str',F3.0)",        "xxx125", 0x405f400000000000, 0},
+      {"('str',F3.0)", "xxx125", 0x405f400000000000, 0},
       {"(-1P,F18.0)", "               125", 0x4093880000000000, 0}, // 1250
       {"(1P,F18.0)", "               125", 0x4029000000000000, 0}, // 12.5
       {"(BZ,F18.0)", "              125 ", 0x4093880000000000, 0}, // 1250

``````````

</details>


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


More information about the llvm-commits mailing list