[libcxx-commits] [libcxx] [libc++][test] Migrate _BitInt probe to __BITINT_MAXWIDTH__ and fix latent test bugs (PR #203876)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 18 08:56:54 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 cpp,h -- libcxx/test/libcxx/concepts/concepts.arithmetic/__libcpp_signed_integer.compile.pass.cpp libcxx/test/libcxx/concepts/concepts.arithmetic/__libcpp_unsigned_integer.compile.pass.cpp libcxx/test/std/containers/views/mdspan/extents/bitint.pass.cpp libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits.pass.cpp libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits10.pass.cpp libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max.pass.cpp libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min.pass.cpp libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.pass.cpp libcxx/test/std/numerics/bit/bit.pow.two/bit_floor.pass.cpp libcxx/test/std/numerics/bit/bit.pow.two/bit_width.pass.cpp libcxx/test/std/numerics/bit/bit.pow.two/has_single_bit.pass.cpp libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp libcxx/test/std/numerics/bit/byteswap.pass.cpp libcxx/test/std/numerics/bit/byteswap.verify.cpp libcxx/test/std/numerics/numeric.ops/numeric.ops.sat/saturating.bitint.pass.cpp libcxx/test/std/utilities/utility/utility.intcmp/intcmp.bitint.pass.cpp libcxx/test/support/test_macros.h --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/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h
index 78b1f6eda..8d2dd5082 100644
--- a/libcxx/test/support/test_macros.h
+++ b/libcxx/test/support/test_macros.h
@@ -65,7 +65,7 @@
#ifdef __is_identifier
// '__is_identifier' returns '0' if '__x' is a reserved identifier provided by
// the compiler and '1' otherwise.
-#define TEST_HAS_BUILTIN_IDENTIFIER(X) !__is_identifier(X)
+# define TEST_HAS_BUILTIN_IDENTIFIER(X) !__is_identifier(X)
#else
#define TEST_HAS_BUILTIN_IDENTIFIER(X) 0
#endif
@@ -85,7 +85,7 @@
#if defined(__apple_build_version__)
// Given AppleClang XX.Y.Z, TEST_APPLE_CLANG_VER is XXYZ (e.g. AppleClang 14.0.3 => 1403)
-#define TEST_APPLE_CLANG_VER (__apple_build_version__ / 10000)
+# define TEST_APPLE_CLANG_VER (__apple_build_version__ / 10000)
#elif defined(__clang_major__)
#define TEST_CLANG_VER (__clang_major__ * 100) + __clang_minor__
#elif defined(__GNUC__)
``````````
</details>
https://github.com/llvm/llvm-project/pull/203876
More information about the libcxx-commits
mailing list