[Openmp-commits] [llvm] [openmp] [OpenMP][OMPT] Error when registering EMI and non-EMI callbacks (PR #213697)

via Openmp-commits openmp-commits at lists.llvm.org
Mon Aug 3 08:31:56 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 h,c,cpp -- offload/test/ompt/register_both.h offload/test/ompt/veccopy_disallow_both.c openmp/runtime/src/ompt-general.cpp --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/offload/test/ompt/register_both.h b/offload/test/ompt/register_both.h
index 4e9157c2b..a20b42bad 100644
--- a/offload/test/ompt/register_both.h
+++ b/offload/test/ompt/register_both.h
@@ -5,7 +5,7 @@
   do {                                                                         \
     type f_##name = &on_##name;                                                \
     ompt_set_result_t result =                                                 \
-      ompt_set_callback(name, (ompt_callback_t)f_##name);                      \
+        ompt_set_callback(name, (ompt_callback_t)f_##name);                    \
     if (result == ompt_set_never || result == ompt_set_error)                  \
       printf("0: Could not register callback '" #name "'\n");                  \
   } while (0)

``````````

</details>


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


More information about the Openmp-commits mailing list