<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/libcxx/test/std/containers/sequences/array/array.cons/initialization.pass.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[libcxx][test] Fix typos (#155217)</title>
<updated>2025-08-25T10:02:51+00:00</updated>
<author>
<name>Stephan T. Lavavej</name>
<email>stl@nuwen.net</email>
</author>
<published>2025-08-25T10:02:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=abf91449a3d4896d11aa7bea3a9acede614ce778'/>
<id>abf91449a3d4896d11aa7bea3a9acede614ce778</id>
<content type='text'>
I noticed a typo in the directory name `refwrap.comparissons`, then did
a quick pass to fix typos elsewhere in the tests.

All fixes were manual (some carefully search-and-replaced); I used
[cspell](https://www.npmjs.com/package/cspell) to find them.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I noticed a typo in the directory name `refwrap.comparissons`, then did
a quick pass to fix typos elsewhere in the tests.

All fixes were manual (some carefully search-and-replaced); I used
[cspell](https://www.npmjs.com/package/cspell) to find them.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc++][NFC] Run the container tests through clang-format (#126499)</title>
<updated>2025-02-11T05:17:39+00:00</updated>
<author>
<name>Louis Dionne</name>
<email>ldionne.2@gmail.com</email>
</author>
<published>2025-02-11T05:17:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2d66ab5e8ede4f893b272f5ad1231e87504d7235'/>
<id>2d66ab5e8ede4f893b272f5ad1231e87504d7235</id>
<content type='text'>
We've been improving these the tests for vector quite a bit and we are
probably not done improving our container tests. Formatting everything
at once will make subsequent reviews easier.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We've been improving these the tests for vector quite a bit and we are
probably not done improving our container tests. Formatting everything
at once will make subsequent reviews easier.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc++][test] Fix MSVC warning C4127 in `array.cons/initialization.pass.cpp` (#79793)</title>
<updated>2024-03-09T10:31:58+00:00</updated>
<author>
<name>Stephan T. Lavavej</name>
<email>stl@nuwen.net</email>
</author>
<published>2024-03-09T10:31:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1c7607e8ee6ec4ca3abce1561dd39a98d4efac96'/>
<id>1c7607e8ee6ec4ca3abce1561dd39a98d4efac96</id>
<content type='text'>
This fixes MSVC warning C4127: conditional expression is constant.

Testing `TEST_STD_AT_LEAST_20_OR_RUNTIME_EVALUATED` by itself doesn't
emit this warning, but the condition here is more complicated. I'm
expanding the macro and mechanically simplifying the resulting code.

(Yeah, this warning is often annoying, and I introduced
`TEST_STD_AT_LEAST_20_OR_RUNTIME_EVALUATED` to avoid this warning
elsewhere, so it's disappointing that it doesn't make the compiler happy
here. If this change is undesirable, I can replace it with
`ADDITIONAL_COMPILE_FLAGS(cl-style-warnings)`, but ideally I'd like to
avoid having to suppress it.)

---------

Co-authored-by: Louis Dionne &lt;ldionne.2@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes MSVC warning C4127: conditional expression is constant.

Testing `TEST_STD_AT_LEAST_20_OR_RUNTIME_EVALUATED` by itself doesn't
emit this warning, but the condition here is more complicated. I'm
expanding the macro and mechanically simplifying the resulting code.

(Yeah, this warning is often annoying, and I introduced
`TEST_STD_AT_LEAST_20_OR_RUNTIME_EVALUATED` to avoid this warning
elsewhere, so it's disappointing that it doesn't make the compiler happy
here. If this change is undesirable, I can replace it with
`ADDITIONAL_COMPILE_FLAGS(cl-style-warnings)`, but ideally I'd like to
avoid having to suppress it.)

---------

Co-authored-by: Louis Dionne &lt;ldionne.2@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[libc++] Fix constexpr initialization of std::array&lt;T, 0&gt; (#74667)</title>
<updated>2023-12-15T21:06:12+00:00</updated>
<author>
<name>Louis Dionne</name>
<email>ldionne.2@gmail.com</email>
</author>
<published>2023-12-15T21:06:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=70bcd81e7a7365d2fa98a2d08ba81305eb7846f1'/>
<id>70bcd81e7a7365d2fa98a2d08ba81305eb7846f1</id>
<content type='text'>
This patch fixes constexpr default initialization of empty arrays and
improves the tests accordingly.

Fixes #74375</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes constexpr default initialization of empty arrays and
improves the tests accordingly.

Fixes #74375</pre>
</div>
</content>
</entry>
<entry>
<title>[libc++] Fix issues with the triviality of std::array</title>
<updated>2020-05-29T23:32:55+00:00</updated>
<author>
<name>Louis Dionne</name>
<email>ldionne@apple.com</email>
</author>
<published>2020-05-29T23:32:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7265ff928a974a844b6301c139cbb0f957532da9'/>
<id>7265ff928a974a844b6301c139cbb0f957532da9</id>
<content type='text'>
The Standard is currently unimplementable. We have to pick between:

1. Not implementing constexpr support properly in std::array&lt;T, 0&gt;
2. Making std::array&lt;T, 0&gt; non-trivial even when T is trivial
3. Returning nullptr from std::array&lt;T, 0&gt;::begin()

Libc++ initially picked (1). In 77b9abfc8e89, we started implementing constexpr properly, but lost the guarantee of triviality. Since it seems like both (1) and (2) are really important, it seems like (3) is the only viable option for libc++, after all. This is also what other implementations are doing.

This patch moves libc++ from (1) to (3).

It also:
- Improves the test coverage for the various ways of initializing std::array
- Adds tests for the triviality of std::array
- Adds tests for the aggregate-ness of std::array

Reviewed By: #libc, miscco, EricWF, zoecarver

Differential Revision: https://reviews.llvm.org/D80821
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Standard is currently unimplementable. We have to pick between:

1. Not implementing constexpr support properly in std::array&lt;T, 0&gt;
2. Making std::array&lt;T, 0&gt; non-trivial even when T is trivial
3. Returning nullptr from std::array&lt;T, 0&gt;::begin()

Libc++ initially picked (1). In 77b9abfc8e89, we started implementing constexpr properly, but lost the guarantee of triviality. Since it seems like both (1) and (2) are really important, it seems like (3) is the only viable option for libc++, after all. This is also what other implementations are doing.

This patch moves libc++ from (1) to (3).

It also:
- Improves the test coverage for the various ways of initializing std::array
- Adds tests for the triviality of std::array
- Adds tests for the aggregate-ness of std::array

Reviewed By: #libc, miscco, EricWF, zoecarver

Differential Revision: https://reviews.llvm.org/D80821
</pre>
</div>
</content>
</entry>
</feed>
