[llvm] [OpenMP][Offload] Continue to update libomptarget debug messages (PR #170425)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 10 05:15:18 PST 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 origin/main HEAD --extensions cpp,h -- offload/include/Shared/Debug.h offload/libomptarget/interface.cpp offload/libomptarget/omptarget.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/include/Shared/Debug.h b/offload/include/Shared/Debug.h
index c30c2106b..d5cf719f1 100644
--- a/offload/include/Shared/Debug.h
+++ b/offload/include/Shared/Debug.h
@@ -435,7 +435,8 @@ template <typename LambdaTy> struct LambdaHelper {
template <typename T, typename = std::void_t<>>
struct has_two_args : std::false_type {};
template <typename T>
- struct has_two_args<T, std::void_t<decltype(std::declval<T>().operator()(1,2))>>
+ struct has_two_args<T,
+ std::void_t<decltype(std::declval<T>().operator()(1, 2))>>
: std::true_type {};
static void dispatch(LambdaTy func, llvm::raw_ostream &Os, uint32_t Level) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/170425
More information about the llvm-commits
mailing list