From ad7548fcc42b32c7b8ab18964acc2a05b1851287 Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Fri, 20 Dec 2024 20:18:09 +0100 Subject: [PATCH 1/3] [stdckdint.h.syn,stdbit.h.syn] Add proper indexing for header definition Also add a check to prevent future oversights. --- source/numerics.tex | 1 + source/utilities.tex | 1 + tools/check-output.sh | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/source/numerics.tex b/source/numerics.tex index 1cdc5bb0ce..b91b8a06e1 100644 --- a/source/numerics.tex +++ b/source/numerics.tex @@ -18952,6 +18952,7 @@ \rSec2[stdckdint.h.syn]{Header \tcode{} synopsis} +\indexheader{stdckdint.h}% \begin{codeblock} #define @\libglobal{__STDC_VERSION_STDCKDINT_H__}@ 202311L diff --git a/source/utilities.tex b/source/utilities.tex index ad5fe79cd4..6c2b5b68bf 100644 --- a/source/utilities.tex +++ b/source/utilities.tex @@ -15483,6 +15483,7 @@ \rSec1[stdbit.h.syn]{Header \tcode{} synopsis} +\indexheader{stdbit.h}% \begin{codeblock} #define @\libglobal{__STDC_VERSION_STDBIT_H__}@ 202311L diff --git a/tools/check-output.sh b/tools/check-output.sh index bfd2a370b6..af2897a1bc 100755 --- a/tools/check-output.sh +++ b/tools/check-output.sh @@ -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/' | From 30398c71f112d12a1843be429f9e9782803cfb59 Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Fri, 20 Dec 2024 20:27:57 +0100 Subject: [PATCH 2/3] [depr.c.macros] Remove superfluous indexing --- source/future.tex | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/future.tex b/source/future.tex index f29866fcc7..1abc48bc00 100644 --- a/source/future.tex +++ b/source/future.tex @@ -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 @@ -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} From 35dfbb042df51555c6f5a2c7fdcf9324e03baa60 Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Fri, 20 Dec 2024 20:29:02 +0100 Subject: [PATCH 3/3] [diff.mods.to.definitions] Remove superfluous indexing --- source/compatibility.tex | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/compatibility.tex b/source/compatibility.tex index cc442c3e0f..23ba5e4f8d 100644 --- a/source/compatibility.tex +++ b/source/compatibility.tex @@ -3641,7 +3641,6 @@ by \libheaderref{iso646.h}. \rSec3[diff.header.stdalign.h]{Header \tcode{}} -\indexhdr{stdalign.h}% \pnum The token \keyword{alignas} is a keyword in \Cpp{}\iref{lex.key}, @@ -3649,7 +3648,6 @@ by \libheaderref{stdalign.h}. \rSec3[diff.header.stdbool.h]{Header \tcode{}} -\indexhdr{stdbool.h}% \pnum The tokens \keyword{bool}, \keyword{true}, and \keyword{false}