Skip to content

Commit

Permalink
[C99] Claim conformance to "additional predefined macro names"
Browse files Browse the repository at this point in the history
This feature is listed in the C99 front matter as one of the changes to
C99, but there was no associated document with that title (or anything
close to it).

I eventually tracked this down to a new requirement in C99 that
implementations defining their own pedefined macros should not name
them with a __STDC_ prefix. Clang does not do this, but there's no
tests that would demonstrate we properly "implement" this feature. So
claiming full conformance without additional test coverage.
  • Loading branch information
AaronBallman committed Mar 25, 2024
1 parent 6187f27 commit bd4086f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion clang/www/c_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,13 @@ <h2 id="c99">C99 implementation status</h2>
<tr>
<td>additional predefined macro names</td>
<td>Unknown</td>
<td class="unknown" align="center">Unknown</td>
<td class="full" align="center">Yes</td>
<!-- It is unknown which paper brought in this change, which was listed in
the C99 front matter. After hunting around for what these changes are,
I found a mention in the C99 rationale document that implementers who
wish to add their own predefined macros must not start them with
__STDC_, which was a new restriction in C99. As best I can tell, that
is what this particular feature is about. -->
</tr>
<tr>
<td>_Pragma preprocessing operator</td>
Expand Down

0 comments on commit bd4086f

Please sign in to comment.