[libc-commits] [libc] [libc] Pull last dependencies into rpc_util.h (PR #116693)

via libc-commits libc-commits at lists.llvm.org
Mon Nov 18 13:39:07 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 222f6aff3db1cfee0a1461482584dc374886da73 a2a27c3d825958f335a40308b2b7aff4829b77ed --extensions cpp,h -- libc/src/__support/OSUtil/gpu/exit.cpp libc/src/__support/RPC/rpc.h libc/src/__support/RPC/rpc_client.h libc/src/__support/RPC/rpc_util.h libc/src/stdio/gpu/vfprintf_utils.h libc/src/stdlib/gpu/abort.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/__support/RPC/rpc_util.h b/libc/src/__support/RPC/rpc_util.h
index aa23549d4b..209c7b6e3d 100644
--- a/libc/src/__support/RPC/rpc_util.h
+++ b/libc/src/__support/RPC/rpc_util.h
@@ -149,7 +149,7 @@ public:
 LIBC_INLINE void sleep_briefly() {
 #if defined(LIBC_TARGET_ARCH_IS_NVPTX)
   if (__nvvm_reflect("__CUDA_ARCH") >= 700)
-    LIBC_INLINE_ASM("nanosleep.u32 64;" :: : "memory");
+    LIBC_INLINE_ASM("nanosleep.u32 64;" ::: "memory");
 #elif defined(LIBC_TARGET_ARCH_IS_AMDGPU)
   __builtin_amdgcn_s_sleep(2);
 #elif defined(LIBC_TARGET_ARCH_IS_X86)

``````````

</details>


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


More information about the libc-commits mailing list