<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm5719-llvm/libcxx/test/std/strings/basic.string/string.capacity, branch meklort-10.0.1</title>
<subtitle>Project Ortega BCM5719 LLVM</subtitle>
<id>https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.1</id>
<link rel='self' href='https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.1'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/'/>
<updated>2019-05-31T18:35:30+00:00</updated>
<entry>
<title>Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended.</title>
<updated>2019-05-31T18:35:30+00:00</updated>
<author>
<name>Marshall Clow</name>
<email>mclow.lists@gmail.com</email>
</author>
<published>2019-05-31T18:35:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=7fc6a55688c816f5fc1a5481ae7af25be7500356'/>
<id>urn:sha1:7fc6a55688c816f5fc1a5481ae7af25be7500356</id>
<content type='text'>
llvm-svn: 362252
</content>
</entry>
<entry>
<title>[libc++] Mark several tests as XFAIL on macosx10.7</title>
<updated>2019-02-27T00:57:57+00:00</updated>
<author>
<name>Louis Dionne</name>
<email>ldionne@apple.com</email>
</author>
<published>2019-02-27T00:57:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=25838c6dacca8203b4478ac2c16e563b51c3708b'/>
<id>urn:sha1:25838c6dacca8203b4478ac2c16e563b51c3708b</id>
<content type='text'>
Those tests fail when linking against a new dylib but running against
macosx10.7. I believe this is caused by a duplicate definition of the
RTTI for exception classes in libc++.dylib and libc++abi.dylib, but
this matter still needs some investigation.

This issue was not caught previously because all the tests always linked
against the same dylib used for running (because LIT made it impossible
to do otherwise before r349171).

rdar://problem/46809586

llvm-svn: 354940
</content>
</entry>
<entry>
<title>Support tests in freestanding</title>
<updated>2019-02-04T20:31:13+00:00</updated>
<author>
<name>JF Bastien</name>
<email>jfbastien@apple.com</email>
</author>
<published>2019-02-04T20:31:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=2df59c50688c122bbcae7467d3eaf862c3ea3088'/>
<id>urn:sha1:2df59c50688c122bbcae7467d3eaf862c3ea3088</id>
<content type='text'>
Summary:
Freestanding is *weird*. The standard allows it to differ in a bunch of odd
manners from regular C++, and the committee would like to improve that
situation. I'd like to make libc++ behave better with what freestanding should
be, so that it can be a tool we use in improving the standard. To do that we
need to try stuff out, both with "freestanding the language mode" and
"freestanding the library subset".

Let's start with the super basic: run the libc++ tests in freestanding, using
clang as the compiler, and see what works. The easiest hack to do this:

In utils/libcxx/test/config.py add:

  self.cxx.compile_flags += ['-ffreestanding']

Run the tests and they all fail.

Why? Because in freestanding `main` isn't special. This "not special" property
has two effects: main doesn't get mangled, and main isn't allowed to omit its
`return` statement. The first means main gets mangled and the linker can't
create a valid executable for us to test. The second means we spew out warnings
(ew) and the compiler doesn't insert the `return` we omitted, and main just
falls of the end and does whatever undefined behavior (if you're luck, ud2
leading to non-zero return code).

Let's start my work with the basics. This patch changes all libc++ tests to
declare `main` as `int main(int, char**` so it mangles consistently (enabling us
to declare another `extern "C"` main for freestanding which calls the mangled
one), and adds `return 0;` to all places where it was missing. This touches 6124
files, and I apologize.

The former was done with The Magic Of Sed.

The later was done with a (not quite correct but decent) clang tool:

  https://gist.github.com/jfbastien/793819ff360baa845483dde81170feed

This works for most tests, though I did have to adjust a few places when e.g.
the test runs with `-x c`, macros are used for main (such as for the filesystem
tests), etc.

Once this is in we can create a freestanding bot which will prevent further
regressions. After that, we can start the real work of supporting C++
freestanding fairly well in libc++.

&lt;rdar://problem/47754795&gt;

Reviewers: ldionne, mclow.lists, EricWF

Subscribers: christof, jkorous, dexonsmith, arphaman, miyuki, libcxx-commits

Differential Revision: https://reviews.llvm.org/D57624

llvm-svn: 353086
</content>
</entry>
<entry>
<title>Update more file headers across all of the LLVM projects in the monorepo</title>
<updated>2019-01-19T10:56:40+00:00</updated>
<author>
<name>Chandler Carruth</name>
<email>chandlerc@gmail.com</email>
</author>
<published>2019-01-19T10:56:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=57b08b0944046a6a57ee9b7b479181f548a5b9b4'/>
<id>urn:sha1:57b08b0944046a6a57ee9b7b479181f548a5b9b4</id>
<content type='text'>
to reflect the new license. These used slightly different spellings that
defeated my regular expressions.

We understand that people may be surprised that we're moving the header
entirely to discuss the new license. We checked this carefully with the
Foundation's lawyer and we believe this is the correct approach.

Essentially, all code in the project is now made available by the LLVM
project under our new license, so you will see that the license headers
include that license only. Some of our contributors have contributed
code under our old license, and accordingly, we have retained a copy of
our old license notice in the top-level files in each project and
repository.

llvm-svn: 351648
</content>
</entry>
<entry>
<title>Implement P0966 - string::reserve should not shrink</title>
<updated>2018-11-28T18:18:34+00:00</updated>
<author>
<name>Marshall Clow</name>
<email>mclow.lists@gmail.com</email>
</author>
<published>2018-11-28T18:18:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=4d64d7dd641d385439a354db1f98cbb0ab7167f9'/>
<id>urn:sha1:4d64d7dd641d385439a354db1f98cbb0ab7167f9</id>
<content type='text'>
llvm-svn: 347789
</content>
</entry>
<entry>
<title>[libcxx] [test] Add missing &lt;stdexcept&gt; in several tests.</title>
<updated>2018-08-08T00:40:32+00:00</updated>
<author>
<name>Billy Robert O'Neal III</name>
<email>bion@microsoft.com</email>
</author>
<published>2018-08-08T00:40:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=ed2f9a6094ef2679fc8d9d70001c4f5b111c738d'/>
<id>urn:sha1:ed2f9a6094ef2679fc8d9d70001c4f5b111c738d</id>
<content type='text'>
Reviewed as https://reviews.llvm.org/D50420

llvm-svn: 339209
</content>
</entry>
<entry>
<title>More of P0600 - '[[nodiscard]] in the Library' mark empty() as nodiscard in string, string_view, and the free function std::empty(). Removed tabs from &lt;string_view&gt;, which is why the diff is so big.</title>
<updated>2017-11-15T20:02:27+00:00</updated>
<author>
<name>Marshall Clow</name>
<email>mclow.lists@gmail.com</email>
</author>
<published>2017-11-15T20:02:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=25a7ba4524219e7eeb1254db0d406448f3703d3a'/>
<id>urn:sha1:25a7ba4524219e7eeb1254db0d406448f3703d3a</id>
<content type='text'>
llvm-svn: 318328
</content>
</entry>
<entry>
<title>Add markup for libc++ dylib availability</title>
<updated>2017-05-04T17:08:54+00:00</updated>
<author>
<name>Mehdi Amini</name>
<email>joker.eph@gmail.com</email>
</author>
<published>2017-05-04T17:08:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=e9c66ad9fa9f1c1138c2a4868610e1d77271216c'/>
<id>urn:sha1:e9c66ad9fa9f1c1138c2a4868610e1d77271216c</id>
<content type='text'>
Libc++ is used as a system library on macOS and iOS (amongst others). In order
for users to be able to compile a binary that is intended to be deployed to an
older version of the platform, clang provides the
availability attribute &lt;https://clang.llvm.org/docs/AttributeReference.html#availability&gt;_
that can be placed on declarations to describe the lifecycle of a symbol in the
library.

See docs/DesignDocs/AvailabilityMarkup.rst for more information.

Differential Revision: https://reviews.llvm.org/D31739

llvm-svn: 302172
</content>
</entry>
<entry>
<title>Protect std::string tests under libcpp-no-exceptions</title>
<updated>2016-11-29T16:40:19+00:00</updated>
<author>
<name>Roger Ferrer Ibanez</name>
<email>roger.ferreribanez@arm.com</email>
</author>
<published>2016-11-29T16:40:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=9d03c03858e99525969edade670a8f8ccb706d64'/>
<id>urn:sha1:9d03c03858e99525969edade670a8f8ccb706d64</id>
<content type='text'>
Skip tests that expect an exception be thrown and/or disable
unreachable catch handlers.

Differential Revision: https://reviews.llvm.org/D26612

llvm-svn: 288158
</content>
</entry>
<entry>
<title>Reverting wrong diff</title>
<updated>2016-11-24T11:28:02+00:00</updated>
<author>
<name>Roger Ferrer Ibanez</name>
<email>roger.ferreribanez@arm.com</email>
</author>
<published>2016-11-24T11:28:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=d056b5be51bbbcaa4b38b6468c4946125178ddba'/>
<id>urn:sha1:d056b5be51bbbcaa4b38b6468c4946125178ddba</id>
<content type='text'>
I managed to confuse me with two reviews of the same thing and ended commiting the wrong one.

llvm-svn: 287868
</content>
</entry>
</feed>
