<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/libc/include/assert.h.def, branch users/nico/python-1</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>[libc] Update assert for C23 (#137402)</title>
<updated>2025-04-28T19:06:52+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2025-04-28T19:06:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9124e963a3bf73fd7430a17535d638601be5630f'/>
<id>9124e963a3bf73fd7430a17535d638601be5630f</id>
<content type='text'>
Previously the assert macro took one argument named "e", but this led to
possible errors if the caller had commas in their input. C23 changed the
definition of assert to use `__VA_ARGS__` to ensure comma cases are
handled properly. This patch doesn't introduce the enforcement function
mentioned in the standard update, though that may be done in a followup.

Fixes #136184</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the assert macro took one argument named "e", but this led to
possible errors if the caller had commas in their input. C23 changed the
definition of assert to use `__VA_ARGS__` to ensure comma cases are
handled properly. This patch doesn't introduce the enforcement function
mentioned in the standard update, though that may be done in a followup.

Fixes #136184</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Make static_assert available even if NDEBUG is set (#99742)</title>
<updated>2024-07-20T07:56:52+00:00</updated>
<author>
<name>Petr Hosek</name>
<email>phosek@google.com</email>
</author>
<published>2024-07-20T07:56:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d386a5582b286bbd8a52f2fd3dbc5c8f70a8f60d'/>
<id>d386a5582b286bbd8a52f2fd3dbc5c8f70a8f60d</id>
<content type='text'>
This addresses an issue introduced in #98826 where static_assert was
made defined only when NDEBUG is not set which is different from all
other C libraries and breaks any code that uses static_assert and
doesn't guard it with NDEBUG.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This addresses an issue introduced in #98826 where static_assert was
made defined only when NDEBUG is not set which is different from all
other C libraries and breaks any code that uses static_assert and
doesn't guard it with NDEBUG.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] newheadergen: added assert.yaml (#98826)</title>
<updated>2024-07-15T23:52:32+00:00</updated>
<author>
<name>aaryanshukla</name>
<email>53713108+aaryanshukla@users.noreply.github.com</email>
</author>
<published>2024-07-15T23:52:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=34e06dc3716436603ad815f8d4c3f638ef679e38'/>
<id>34e06dc3716436603ad815f8d4c3f638ef679e38</id>
<content type='text'>
- removed assert macro definitions in api.td
- included macro definitions in assert.h.def
- added assert.yaml</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- removed assert macro definitions in api.td
- included macro definitions in assert.h.def
- added assert.yaml</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][assert] define __STDC_VERSION_ASSERT_H__ (#87592)</title>
<updated>2024-04-24T20:01:16+00:00</updated>
<author>
<name>aniplcc</name>
<email>aniplccode@gmail.com</email>
</author>
<published>2024-04-24T20:01:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=11bd19a7a25b291af61b6c06cb249b567c116d0e'/>
<id>11bd19a7a25b291af61b6c06cb249b567c116d0e</id>
<content type='text'>
Fixes #87561</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #87561</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] fix up the use of angle includes in include/ (#86027)</title>
<updated>2024-03-22T15:24:08+00:00</updated>
<author>
<name>Nick Desaulniers</name>
<email>nickdesaulniers@users.noreply.github.com</email>
</author>
<published>2024-03-22T15:24:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=cdbec7baf1bc31b59526442c9d4d5f53aac746eb'/>
<id>cdbec7baf1bc31b59526442c9d4d5f53aac746eb</id>
<content type='text'>
Performed en-masse via:

    $ grep -rn "#include &lt;ll" libc/include -l | \
      xargs perl -pi -e 's/#include &lt;ll(.*)&gt;/#include "ll$1"/'
    $ grep -rn "#include &lt;__" libc/include -l | \
      xargs perl -pi -e 's/#include &lt;__(.*)&gt;/#include "__$1"/'

Link: #83463
Link: #83210
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Performed en-masse via:

    $ grep -rn "#include &lt;ll" libc/include -l | \
      xargs perl -pi -e 's/#include &lt;ll(.*)&gt;/#include "ll$1"/'
    $ grep -rn "#include &lt;__" libc/include -l | \
      xargs perl -pi -e 's/#include &lt;__(.*)&gt;/#include "__$1"/'

Link: #83463
Link: #83210
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][NFC] Make all top of file comments consistent.</title>
<updated>2020-04-08T17:18:37+00:00</updated>
<author>
<name>Paula Toth</name>
<email>paulatoth@google.com</email>
</author>
<published>2020-04-08T17:16:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=66d00feb186619cc5919a18ab56334558e6bbd45'/>
<id>66d00feb186619cc5919a18ab56334558e6bbd45</id>
<content type='text'>
Summary:
Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers.
And did the same for all source files top of file comments.

Reviewers: sivachandra, abrachet

Reviewed By: sivachandra, abrachet

Subscribers: MaskRay, tschuett, libc-commits

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D77533
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers.
And did the same for all source files top of file comments.

Reviewers: sivachandra, abrachet

Reviewed By: sivachandra, abrachet

Subscribers: MaskRay, tschuett, libc-commits

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D77533
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Add initial assert definition</title>
<updated>2020-03-12T03:45:58+00:00</updated>
<author>
<name>Alex Brachet</name>
<email>alexbrachetmialot@gmail.com</email>
</author>
<published>2020-03-12T03:45:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b47c9f535c8a0fffeb7634a82e3901d416915938'/>
<id>b47c9f535c8a0fffeb7634a82e3901d416915938</id>
<content type='text'>
Summary: This patch adds a temporary `__assert_fail` and `assert` definition to make it available to internal llvm libc code. `__assert_fail` writes to fd 2 directly instead of `stderr`, using SYS_write. I have not put it in its own linux directory because this is temporary and it should be using stdio's api in the future. It does not currently print out the line number (although we could do that by stringifying `__LINE__` if reviewers wish).

Reviewers: sivachandra, gchatelet, PaulkaToast

Reviewed By: sivachandra

Subscribers: mgorny, MaskRay, tschuett, libc-commits

Differential Revision: https://reviews.llvm.org/D75420
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary: This patch adds a temporary `__assert_fail` and `assert` definition to make it available to internal llvm libc code. `__assert_fail` writes to fd 2 directly instead of `stderr`, using SYS_write. I have not put it in its own linux directory because this is temporary and it should be using stdio's api in the future. It does not currently print out the line number (although we could do that by stringifying `__LINE__` if reviewers wish).

Reviewers: sivachandra, gchatelet, PaulkaToast

Reviewed By: sivachandra

Subscribers: mgorny, MaskRay, tschuett, libc-commits

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