[flang-commits] [flang] [Flang] Add new CHECK_MSG() function (PR #86576)

via flang-commits flang-commits at lists.llvm.org
Mon Mar 25 13:54:53 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 0fe0ef4d7f33d327b64b08a250be3713d89fa416 5662aae74b9776b3a408feccec63496a4e318ae6 -- flang/include/flang/Common/idioms.h flang/lib/Evaluate/constant.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/include/flang/Common/idioms.h b/flang/include/flang/Common/idioms.h
index 455ddb8084..a24c11d2bf 100644
--- a/flang/include/flang/Common/idioms.h
+++ b/flang/include/flang/Common/idioms.h
@@ -68,7 +68,8 @@ template <typename... LAMBDAS> visitors(LAMBDAS... x) -> visitors<LAMBDAS...>;
 [[noreturn]] void die(const char *, ...);
 
 #define DIE(x) Fortran::common::die(x " at " __FILE__ "(%d)", __LINE__)
-#define DIE_MSG(x, y) Fortran::common::die(x " at " __FILE__ "(%d): %s", __LINE__, y)
+#define DIE_MSG(x, y) \
+  Fortran::common::die(x " at " __FILE__ "(%d): %s", __LINE__, y)
 
 // For switch statement default: labels.
 #define CRASH_NO_CASE DIE("no case")

``````````

</details>


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


More information about the flang-commits mailing list