[libcxx-commits] [libcxx] __config: also ignore shift-out-of-bounds error with ubsan checks (PR #146688)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 2 06:14:04 PDT 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 HEAD~1 HEAD --extensions -- libcxx/include/__config
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__config b/libcxx/include/__config
index b8331a2b4..e8177cde8 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -1155,7 +1155,8 @@ typedef __char32_t char32_t;
// Allow for build-time disabling of unsigned integer sanitization
# if __has_attribute(no_sanitize) && !defined(_LIBCPP_COMPILER_GCC)
-# define _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK __attribute__((__no_sanitize__("unsigned-integer-overflow", "shift-out-of-bounds")))
+# define _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK \
+ __attribute__((__no_sanitize__("unsigned-integer-overflow", "shift-out-of-bounds")))
# else
# define _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK
# endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/146688
More information about the libcxx-commits
mailing list