[libcxx-commits] [libcxx] [libc++][hardening] Rework how the assertion handler can be overridden. (PR #77883)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jan 12 18:12:00 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 4f215fdd62d3f014750339eab9a46946b6fb1c4a 50282f37da27983c4cffd3df9ce1611f61450097 -- libcxx/include/__assert libcxx/test/support/check_assertion.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/support/check_assertion.h b/libcxx/test/support/check_assertion.h
index f3aeb95d99..d8df46a44a 100644
--- a/libcxx/test/support/check_assertion.h
+++ b/libcxx/test/support/check_assertion.h
@@ -248,7 +248,7 @@ void std::__libcpp_verbose_abort(char const* message, ...) {
assert(match_result.size() == 5);
std::string file = match_result[1];
- int line = std::stoi(match_result[2]);
+ int line = std::stoi(match_result[2]);
// Omitting `expression` in `match_result[3]`
std::string failure_reason = match_result[4];
``````````
</details>
https://github.com/llvm/llvm-project/pull/77883
More information about the libcxx-commits
mailing list