[flang-commits] [flang] [flang]Add new intrinsic function backtrace and complete the TODO of abort (PR #117603)

via flang-commits flang-commits at lists.llvm.org
Wed Nov 27 03:14:04 PST 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 38a3cce90a2cc54ea9ad6bbdd63ccd61c32cfac9 6c22384e2d8235ec9cab1028e89ceba1e7f0a932 --extensions cpp,h -- flang/include/flang/Optimizer/Builder/IntrinsicCall.h flang/include/flang/Optimizer/Builder/Runtime/Stop.h flang/include/flang/Runtime/stop.h flang/lib/Evaluate/intrinsics.cpp flang/lib/Optimizer/Builder/IntrinsicCall.cpp flang/lib/Optimizer/Builder/Runtime/Stop.cpp flang/runtime/stop.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/runtime/stop.cpp b/flang/runtime/stop.cpp
index 1a1af64250..17d0ca661d 100644
--- a/flang/runtime/stop.cpp
+++ b/flang/runtime/stop.cpp
@@ -174,7 +174,8 @@ static void PrintBacktrace() {
 #else
 
   // TODO: Need to implement the version for other platforms.
-  Fortran::runtime::Terminator{}.PrintCrashArgs("Handle the case when a backtrace is not available");
+  Fortran::runtime::Terminator{}.PrintCrashArgs(
+      "Handle the case when a backtrace is not available");
 
 #endif
 }

``````````

</details>


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


More information about the flang-commits mailing list