Skip to content

Commit 5e3f1ad

Browse files
jensmaurertkoeppe
authored andcommitted
[stdatomic.h.syn] Fix missing \expos
and augment the autmatic checks accordingly.
1 parent d2699e5 commit 5e3f1ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

source/atomics.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3712,7 +3712,7 @@
37123712

37133713
\begin{codeblock}
37143714
template<class T>
3715-
using @\exposid{std-atomic}@ = std::atomic<T>; // exposition only
3715+
using @\exposid{std-atomic}@ = std::atomic<T>; // \expos
37163716

37173717
#define _Atomic(T) @\exposid{std-atomic}@<T>
37183718

tools/check-source.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ grep -n '\\opt[^{]' $texfiles |
6363
grep -n 'opt{}' *.tex |
6464
fail '\\opt used incorrectly' || failed=1
6565

66+
# Use \expos insted of "exposition only"
67+
grep -n "// exposition only" $texfiles |
68+
fail 'use \\expos instead' || failed=1
69+
6670
# Use \notdef instead of "not defined".
6771
grep -n "// not defined" $texfiles |
6872
fail "use \\notdef instead" || failed=1

0 commit comments

Comments
 (0)