[libcxx-commits] [libcxx] [libc++] Deprecate and remove `uncaught_exception` (PR #101830)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Aug 3 09:34:24 PDT 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 f78d288d9d77c66f8b3036c62bb55160f19ba9cd efcd48865bc6fec7fc7fca7358bc9e40c15e4823 --extensions ,cpp,inc,h -- libcxx/test/std/language.support/support.exception/uncaught/uncaught_exeption.depr_in_cxx17.verify.cpp libcxx/include/__exception/operations.h libcxx/include/__ostream/basic_ostream.h libcxx/include/exception libcxx/modules/std/exception.inc libcxx/src/exception.cpp libcxx/test/std/language.support/support.exception/uncaught/uncaught_exception.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exeption.depr_in_cxx17.verify.cpp b/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exeption.depr_in_cxx17.verify.cpp
index a106b08f46..070b582ffd 100644
--- a/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exeption.depr_in_cxx17.verify.cpp
+++ b/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exeption.depr_in_cxx17.verify.cpp
@@ -17,5 +17,5 @@
 #include <exception>
 
 void test() {
-    (void) std::uncaught_exception(); // expected-warning {{'uncaught_exception' is deprecated}}
+  (void)std::uncaught_exception(); // expected-warning {{'uncaught_exception' is deprecated}}
 }

``````````

</details>


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


More information about the libcxx-commits mailing list