<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in clear.pass.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>92832e48 - [libc++] Enable &lt;atomic&gt; when threads are disabled</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp#92832e48</link>
        <description>[libc++] Enable &lt;atomic&gt; when threads are disabledstd::atomic is, for the most part, just a thin veneer on top of compilerbuiltins. Hence, it should be available even when threads are not availableon the system, and in fact there has been requests for such support.This patch:- Moves __libcpp_thread_poll_with_backoff to its own header so it can  be used in &lt;atomic&gt; when threads are disabled.- Adds a dummy backoff policy for atomic polling that doesn&apos;t know about  threads.- Adjusts the &lt;atomic&gt; feature-test macros so they are provided even when  threads are disabled.- Runs the &lt;atomic&gt; tests when threads are disabled.rdar://77873569Differential Revision: https://reviews.llvm.org/D114109

            List of files:
            /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp</description>
        <pubDate>Wed, 17 Nov 2021 15:59:31 +0000</pubDate>
        <dc:creator>Louis Dionne &lt;ldionne.2@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>7fc6a556 - Add include for &apos;test_macros.h&apos; to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp#7fc6a556</link>
        <description>Add include for &apos;test_macros.h&apos; to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended.llvm-svn: 362252

            List of files:
            /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp</description>
        <pubDate>Fri, 31 May 2019 18:35:30 +0000</pubDate>
        <dc:creator>Marshall Clow &lt;mclow.lists@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>2df59c50 - Support tests in freestanding</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp#2df59c50</link>
        <description>Support tests in freestandingSummary:Freestanding is *weird*. The standard allows it to differ in a bunch of oddmanners from regular C++, and the committee would like to improve thatsituation. I&apos;d like to make libc++ behave better with what freestanding shouldbe, so that it can be a tool we use in improving the standard. To do that weneed to try stuff out, both with &quot;freestanding the language mode&quot; and&quot;freestanding the library subset&quot;.Let&apos;s start with the super basic: run the libc++ tests in freestanding, usingclang as the compiler, and see what works. The easiest hack to do this:In utils/libcxx/test/config.py add:  self.cxx.compile_flags += [&apos;-ffreestanding&apos;]Run the tests and they all fail.Why? Because in freestanding `main` isn&apos;t special. This &quot;not special&quot; propertyhas two effects: main doesn&apos;t get mangled, and main isn&apos;t allowed to omit its`return` statement. The first means main gets mangled and the linker can&apos;tcreate a valid executable for us to test. The second means we spew out warnings(ew) and the compiler doesn&apos;t insert the `return` we omitted, and main justfalls of the end and does whatever undefined behavior (if you&apos;re luck, ud2leading to non-zero return code).Let&apos;s start my work with the basics. This patch changes all libc++ tests todeclare `main` as `int main(int, char**` so it mangles consistently (enabling usto declare another `extern &quot;C&quot;` main for freestanding which calls the mangledone), and adds `return 0;` to all places where it was missing. This touches 6124files, 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/793819ff360baa845483dde81170feedThis 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 filesystemtests), etc.Once this is in we can create a freestanding bot which will prevent furtherregressions. 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, EricWFSubscribers: christof, jkorous, dexonsmith, arphaman, miyuki, libcxx-commitsDifferential Revision: https://reviews.llvm.org/D57624llvm-svn: 353086

            List of files:
            /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp</description>
        <pubDate>Mon, 04 Feb 2019 20:31:13 +0000</pubDate>
        <dc:creator>JF Bastien &lt;jfbastien@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>57b08b09 - Update more file headers across all of the LLVM projects in the monorepo</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp#57b08b09</link>
        <description>Update more file headers across all of the LLVM projects in the monorepoto reflect the new license. These used slightly different spellings thatdefeated my regular expressions.We understand that people may be surprised that we&apos;re moving the headerentirely to discuss the new license. We checked this carefully with theFoundation&apos;s lawyer and we believe this is the correct approach.Essentially, all code in the project is now made available by the LLVMproject under our new license, so you will see that the license headersinclude that license only. Some of our contributors have contributedcode under our old license, and accordingly, we have retained a copy ofour old license notice in the top-level files in each project andrepository.llvm-svn: 351648

            List of files:
            /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp</description>
        <pubDate>Sat, 19 Jan 2019 10:56:40 +0000</pubDate>
        <dc:creator>Chandler Carruth &lt;chandlerc@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>990952b6 - Fix various undefined behavior found by UBSan.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp#990952b6</link>
        <description>Fix various undefined behavior found by UBSan.* Fix non-null violation in strstream.cpp  Overflow was calling memcpy with a null parameter and a size of 0.* Fix std/atomics/atomics.flag/ tests:  a.test_and_set() was reading from an uninitialized atomic, but wasn&apos;t  using the value. The tests now clear the flag before performing the  first test_and_set. This allows UBSAN to test that clear doesn&apos;t read  an invalid value.* Fix std/experimental/algorithms/alg.random.sample/sample.pass.cpp  The tests were dereferencing a past-the-end pointer to an array so that  they could do pointer arithmetic with it. Instead of dereference the iterator  I changed the tests to use the special &apos;base()&apos; test iterator method.* Add -fno-sanitize=float-divide-by-zero to suppress division by zero UBSAN diagnostics.  The tests that cause float division by zero are explicitly aware that they  are doing that. Since this is well defined for IEEE floats suppress the warnings  for now.llvm-svn: 273107

            List of files:
            /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp</description>
        <pubDate>Sun, 19 Jun 2016 07:08:27 +0000</pubDate>
        <dc:creator>Eric Fiselier &lt;eric@efcs.ca&gt;</dc:creator>
    </item>
<item>
        <title>15a29721 - [libcxx] [test] Replace non-Standard &quot;atomic_flag f(false);&quot; with Standard &quot;atomic_flag f;&quot; </title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp#15a29721</link>
        <description>[libcxx] [test] Replace non-Standard &quot;atomic_flag f(false);&quot; with Standard &quot;atomic_flag f;&quot; Summary:Replace non-Standard &quot;atomic_flag f(false);&quot; with Standard &quot;atomic_flag f;&quot; in clear tests.Although the  value of &apos;f&apos; is unspecified it shouldn&apos;t matter because these tests always call `f.test_and_set()` without checking the result, so the initial state shouldn&apos;t matter.The test init03.pass.cpp is explicitly testing this non-Standard extension; It has been moved into the `test/libcxx` directory.Reviewers: mclow.lists, STL_MSFTSubscribers: cfe-commitsDifferential Revision: http://reviews.llvm.org/D19758llvm-svn: 268355

            List of files:
            /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp</description>
        <pubDate>Tue, 03 May 2016 02:12:26 +0000</pubDate>
        <dc:creator>Eric Fiselier &lt;eric@efcs.ca&gt;</dc:creator>
    </item>
<item>
        <title>749adeba - [libcxx] Allow use of &lt;atomic&gt; in C++03. Try 3.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp#749adeba</link>
        <description>[libcxx] Allow use of &lt;atomic&gt; in C++03. Try 3.Summary:After putting this question up on cfe-dev I have decided that it would be best to allow the use of `&lt;atomic&gt;` in C++03. Although static initialization is a concern the syntax required to get it is C++11 only. Meaning that C++11 constant static initialization cannot silently break in C++03, it will always cause a syntax error. Furthermore `ATOMIC_VAR_INIT` and `ATOMIC_FLAG_INIT` remain defined in C++03 even though they cannot be used because C++03 usages will cause better error messages.The main change in this patch is to replace `__has_feature(cxx_atomic)`, which only returns true when C++ &gt;= 11, to `__has_extension(c_atomic)` which returns true whenever clang supports the required atomic builtins.This patch adds the following macros:* `_LIBCPP_HAS_C_ATOMIC_IMP`      - Defined on clang versions which provide the C `_Atomic` keyword.* `_LIBCPP_HAS_GCC_ATOMIC_IMP` - Defined on GCC &gt; 4.7. We must use the fallback atomic implementation.* `_LIBCPP_HAS_NO_ATOMIC_HEADER` - Defined when it is not safe to include `&lt;atomic&gt;`.`_LIBCPP_HAS_C_ATOMIC_IMP` and `_LIBCPP_HAS_GCC_ATOMIC_IMP` are mutually exclusive, only one should be defined. If neither is defined then `&lt;atomic&gt;` is not implemented and including `&lt;atomic&gt;` will issue an error.Reviewers: chandlerc, jroelofs, mclow.listsSubscribers: cfe-commitsDifferential Revision: http://reviews.llvm.org/D11555llvm-svn: 245463

            List of files:
            /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp</description>
        <pubDate>Wed, 19 Aug 2015 17:21:46 +0000</pubDate>
        <dc:creator>Eric Fiselier &lt;eric@efcs.ca&gt;</dc:creator>
    </item>
<item>
        <title>3de417f4 - Fix uninitialized values and bad enum conversions found by UBSAN.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp#3de417f4</link>
        <description>Fix uninitialized values and bad enum conversions found by UBSAN.llvm-svn: 237738

            List of files:
            /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp</description>
        <pubDate>Tue, 19 May 2015 23:03:57 +0000</pubDate>
        <dc:creator>Eric Fiselier &lt;eric@efcs.ca&gt;</dc:creator>
    </item>
<item>
        <title>5a83710e - Move test into test/std subdirectory.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp#5a83710e</link>
        <description>Move test into test/std subdirectory.llvm-svn: 224658

            List of files:
            /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp</description>
        <pubDate>Sat, 20 Dec 2014 01:40:03 +0000</pubDate>
        <dc:creator>Eric Fiselier &lt;eric@efcs.ca&gt;</dc:creator>
    </item>
</channel>
</rss>
