[libcxx-commits] [libcxx] [libc++][test] Do not test Clang bug in `is_constructible.pass.cpp` (PR #105964)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Aug 24 18:37:58 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 3ef64f7ab5b8651eab500cd944984379fce5f639 dd64b93430c85774b8505ba772dd753b8ebc5a87 --extensions cpp -- libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp
index 9f1bb50e76..cd6d414bcf 100644
--- a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp
+++ b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp
@@ -228,9 +228,9 @@ int main(int, char**)
     // But the rvalue to lvalue reference binding isn't allowed according to
     // [over.match.ref] despite Clang accepting it.
     test_is_constructible<int&, ExplicitTo<int&>>();
-#ifndef __clang__
+#  ifndef __clang__
     test_is_not_constructible<const int&, ExplicitTo<int&&>>();
-#endif
+#  endif
 
     static_assert(std::is_constructible<int&&, ExplicitTo<int&&>>::value, "");
 

``````````

</details>


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


More information about the libcxx-commits mailing list