Skip to content

Commit 352e4b1

Browse files
jensmaurertkoeppe
authored andcommitted
[intro.object,lex.ccon] Use \Cpp{} macros
and augment the automatic checks to flag literal 'C++'.
1 parent 741c207 commit 352e4b1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

source/basic.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3323,7 +3323,7 @@
33233323
implicitly creates objects in the returned region of storage and
33243324
returns a pointer to a suitable created object.
33253325
\begin{note}
3326-
Some functions in the C++ standard library implicitly create objects
3326+
Some functions in the \Cpp{} standard library implicitly create objects
33273327
(\ref{allocator.traits.members}, \ref{c.malloc}, \ref{cstring.syn}, \ref{bit.cast}).
33283328
\end{note}
33293329
\indextext{object model|)}

source/lex.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@
14851485
is specified in \tref{lex.ccon.esc}.
14861486
\begin{note}
14871487
Using an escape sequence for a question mark
1488-
is supported for compatibility with ISO C++ 2014 and ISO C.
1488+
is supported for compatibility with ISO \CppXIV{} and ISO C.
14891489
\end{note}
14901490

14911491
\begin{floattable}{Simple escape sequences}{lex.ccon.esc}

tools/check-source.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ grep -n 'opt{}' *.tex |
6767
grep -n "// not defined" $texfiles |
6868
fail "use \\notdef instead" || failed=1
6969

70+
# Use \Cpp{} instead of C++
71+
grep -n '^[^%]*[^{"]C++[^"}]' $texfiles |
72+
fail 'use \Cpp{} instead' || failed=1
73+
7074
# Library element introducer followed by stuff.
7175
grep -ne '^\\\(constraints\|mandates\|expects\|effects\|sync\|ensures\|returns\|throws\|complexity\|remarks\|errors\).\+$' $texlibdesc |
7276
fail 'stuff after library element' || failed=1

0 commit comments

Comments
 (0)