[libc-commits] [libc] [libc] fix stdbit include test when not all entrypoints are available (PR #80323)

via libc-commits libc-commits at lists.llvm.org
Thu Feb 1 10:57:54 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 6a3fde6d600cccd2ffbede6dd54519036cc4089c e55fb44118c08bf68b9b77fca72d31d7459ea8dd -- libc/test/include/stdbit_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/test/include/stdbit_test.cpp b/libc/test/include/stdbit_test.cpp
index 4e8498621b..7ae91ef842 100644
--- a/libc/test/include/stdbit_test.cpp
+++ b/libc/test/include/stdbit_test.cpp
@@ -25,12 +25,16 @@ unsigned char stdc_leading_zeros_uc(unsigned char) noexcept { return 0xAA; }
 unsigned short stdc_leading_zeros_us(unsigned short) noexcept { return 0xAB; }
 unsigned stdc_leading_zeros_ui(unsigned) noexcept { return 0xAC; }
 unsigned long stdc_leading_zeros_ul(unsigned long) noexcept { return 0xAD; }
-unsigned long long stdc_leading_zeros_ull(unsigned long long) noexcept { return 0xAF; }
+unsigned long long stdc_leading_zeros_ull(unsigned long long) noexcept {
+  return 0xAF;
+}
 unsigned char stdc_leading_ones_uc(unsigned char) noexcept { return 0xBA; }
 unsigned short stdc_leading_ones_us(unsigned short) noexcept { return 0xBB; }
 unsigned stdc_leading_ones_ui(unsigned) noexcept { return 0xBC; }
 unsigned long stdc_leading_ones_ul(unsigned long) noexcept { return 0xBD; }
-unsigned long long stdc_leading_ones_ull(unsigned long long) noexcept { return 0xBF; }
+unsigned long long stdc_leading_ones_ull(unsigned long long) noexcept {
+  return 0xBF;
+}
 }
 
 #include <stdbit.h>

``````````

</details>


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


More information about the libc-commits mailing list