[libc-commits] [libc] [libc] Add line numbers to libc utility error messages (PR #94010)

via libc-commits libc-commits at lists.llvm.org
Fri May 31 12:21:47 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 e19565c5c4679ac7f5414f35137f6df4f70e713a 4ae1b5f0bdb86de8d35277800e05d6f3b13fcfd1 -- libc/utils/gpu/loader/Loader.h libc/utils/gpu/loader/amdgpu/Loader.cpp libc/utils/gpu/loader/nvptx/Loader.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/utils/gpu/loader/Loader.h b/libc/utils/gpu/loader/Loader.h
index ab39940909..14d21ab13c 100644
--- a/libc/utils/gpu/loader/Loader.h
+++ b/libc/utils/gpu/loader/Loader.h
@@ -103,7 +103,8 @@ inline void handle_error_impl(const char *file, int32_t line, const char *msg) {
   exit(EXIT_FAILURE);
 }
 
-inline void handle_error_impl(const char *file, int32_t line, rpc_status_t err) {
+inline void handle_error_impl(const char *file, int32_t line,
+                              rpc_status_t err) {
   fprintf(stderr, "%s:%d: Error: %d\n", file, line, err);
   exit(EXIT_FAILURE);
 }

``````````

</details>


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


More information about the libc-commits mailing list