[libcxx-commits] [libcxx] [libc++][hardening] In production hardening modes, trap rather than abort (PR #78561)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 19 03:08:53 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 8dfc67d6724eb0af5d278f4d1d5511ca9f9e039f 5727f38fb949c39a89c811ac9dc066539af3f86a -- libcxx/test/libcxx/assertions/customize_verbose_abort.compile-time.pass.cpp libcxx/test/libcxx/assertions/customize_verbose_abort.link-time.pass.cpp libcxx/test/libcxx/assertions/default_verbose_abort.pass.cpp libcxx/test/support/check_assertion.h libcxx/test/support/test.support/test_check_assertion.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/support/test.support/test_check_assertion.pass.cpp b/libcxx/test/support/test.support/test_check_assertion.pass.cpp
index 137506ceed..ce0c30ad40 100644
--- a/libcxx/test/support/test.support/test_check_assertion.pass.cpp
+++ b/libcxx/test/support/test.support/test_check_assertion.pass.cpp
@@ -112,7 +112,7 @@ int main(int, char**) {
   {
     auto invoke_abort = [] { _LIBCPP_VERBOSE_ABORT("contains some message"); };
 
-    auto simple_matcher = [] (const std::string& text) {
+    auto simple_matcher = [](const std::string& text) {
       bool success = text.find("some") != std::string::npos;
       return MatchResult(success, "");
     };

``````````

</details>


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


More information about the libcxx-commits mailing list