Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stdckdint.h.syn,stdbit.h.syn] Add proper indexing for header definition #7510

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions source/compatibility.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3641,15 +3641,13 @@
by \libheaderref{iso646.h}.

\rSec3[diff.header.stdalign.h]{Header \tcode{<stdalign.h>}}
\indexhdr{stdalign.h}%

\pnum
The token \keyword{alignas} is a keyword in \Cpp{}\iref{lex.key},
and is not introduced as a macro
by \libheaderref{stdalign.h}.

\rSec3[diff.header.stdbool.h]{Header \tcode{<stdbool.h>}}
\indexhdr{stdbool.h}%

\pnum
The tokens \keyword{bool}, \keyword{true}, and \keyword{false}
Expand Down
2 changes: 0 additions & 2 deletions source/future.tex
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@

\pnum
The header \libheaderref{stdalign.h} has the following macros:
\indexheader{stdalign.h}%
\indexlibraryglobal{__alignas_is_defined}%
\begin{codeblock}
#define @\xname{alignas_is_defined}@ 1
Expand All @@ -230,7 +229,6 @@

\pnum
The header \libheaderref{stdbool.h} has the following macro:
\indexheader{stdbool.h}%
\indexhdr{stdbool.h}%
\indexlibraryglobal{__bool_true_false_are_defined}%
\begin{codeblock}
Expand Down
1 change: 1 addition & 0 deletions source/numerics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -18952,6 +18952,7 @@

\rSec2[stdckdint.h.syn]{Header \tcode{<stdckdint.h>} synopsis}

\indexheader{stdckdint.h}%
\begin{codeblock}
#define @\libglobal{__STDC_VERSION_STDCKDINT_H__}@ 202311L

Expand Down
1 change: 1 addition & 0 deletions source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15483,6 +15483,7 @@

\rSec1[stdbit.h.syn]{Header \tcode{<stdbit.h>} synopsis}

\indexheader{stdbit.h}%
\begin{codeblock}
#define @\libglobal{__STDC_VERSION_STDBIT_H__}@ 202311L

Expand Down
6 changes: 6 additions & 0 deletions tools/check-output.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ cat std-grammarindex.ind |
sed 's/^\(.*\)$/grammar non-terminal \1 has no definition/' |
fail || failed=1

# Find header index entries missing a definition
cat std-headerindex.ind |
awk 'BEGIN { def=1 } /^ .item/ { if (def==0) { gsub("[{},]", "", item); print item } i=NF; while (i > 0 && $i !~ "<[a-z_.]*>") { --i; } item=$i; def=0; next } /hyperindexformat/ { def=1 }' |
sed 's/^\(.*\)$/header \1 has no definition/' |
fail || failed=1

# Find concept index entries missing a definition
cat std-conceptindex.ind |
sed 's/.hyperindexformat/\nhyperindexformat/;s/.hyperpage/hyperpage/' |
Expand Down
Loading