[libcxx-commits] [libcxx] [libc++][test] Replace uses of `_LIBCPP_ABI_MICROSOFT` in tests (PR #77233)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 7 02:48:10 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 4c8dbb68138959477d9fccbae3669663260dfe31 9dfe8387ef70005c39cf5dcd47106afe29978ba0 -- libcxx/test/std/language.support/support.exception/propagation/make_exception_ptr.pass.cpp libcxx/test/std/language.support/support.exception/propagation/rethrow_exception.pass.cpp libcxx/test/support/msvc_stdlib_force_include.h libcxx/test/support/test_macros.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/language.support/support.exception/propagation/make_exception_ptr.pass.cpp b/libcxx/test/std/language.support/support.exception/propagation/make_exception_ptr.pass.cpp
index 8290b874db..0c96e8fa4b 100644
--- a/libcxx/test/std/language.support/support.exception/propagation/make_exception_ptr.pass.cpp
+++ b/libcxx/test/std/language.support/support.exception/propagation/make_exception_ptr.pass.cpp
@@ -40,7 +40,7 @@ int main(int, char**)
catch (const A& a)
{
#ifndef TEST_ABI_MICROSOFT
- assert(A::constructed == 1);
+ assert(A::constructed == 1);
#else
// On Windows exception_ptr copies the exception
assert(A::constructed == 2);
diff --git a/libcxx/test/std/language.support/support.exception/propagation/rethrow_exception.pass.cpp b/libcxx/test/std/language.support/support.exception/propagation/rethrow_exception.pass.cpp
index 57e1e8e90c..af5ac863e3 100644
--- a/libcxx/test/std/language.support/support.exception/propagation/rethrow_exception.pass.cpp
+++ b/libcxx/test/std/language.support/support.exception/propagation/rethrow_exception.pass.cpp
@@ -48,7 +48,7 @@ int main(int, char**)
catch (const A& a)
{
#ifndef TEST_ABI_MICROSOFT
- assert(A::constructed == 1);
+ assert(A::constructed == 1);
#else
// On Windows the exception_ptr copies the exception
assert(A::constructed == 2);
``````````
</details>
https://github.com/llvm/llvm-project/pull/77233
More information about the libcxx-commits
mailing list