Skip to content

Commit 52fbbf7

Browse files
authored
[lib] Put \constraints on a line of its own. (#3548)
This was missed earlier due to a typo in the check script, which is also fixed.
1 parent d9acba9 commit 52fbbf7

File tree

8 files changed

+44
-23
lines changed

8 files changed

+44
-23
lines changed

source/containers.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3478,7 +3478,8 @@
34783478

34793479
\begin{itemdescr}
34803480
\pnum
3481-
\constraints \tcode{N == 0} or \tcode{is_swappable_v<T>} is \tcode{true}.
3481+
\constraints
3482+
\tcode{N == 0} or \tcode{is_swappable_v<T>} is \tcode{true}.
34823483

34833484
\pnum
34843485
\effects

source/diagnostics.tex

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,8 @@
11281128

11291129
\begin{itemdescr}
11301130
\pnum
1131-
\constraints \tcode{is_error_code_enum_v<ErrorCodeEnum>} is \tcode{true}.
1131+
\constraints
1132+
\tcode{is_error_code_enum_v<ErrorCodeEnum>} is \tcode{true}.
11321133

11331134
\pnum
11341135
\ensures
@@ -1156,7 +1157,8 @@
11561157

11571158
\begin{itemdescr}
11581159
\pnum
1159-
\constraints \tcode{is_error_code_enum_v<ErrorCodeEnum>} is \tcode{true}.
1160+
\constraints
1161+
\tcode{is_error_code_enum_v<ErrorCodeEnum>} is \tcode{true}.
11601162

11611163
\pnum
11621164
\ensures
@@ -1336,7 +1338,8 @@
13361338

13371339
\begin{itemdescr}
13381340
\pnum
1339-
\constraints \tcode{is_error_condition_enum_v<ErrorConditionEnum>} is \tcode{true}.
1341+
\constraints
1342+
\tcode{is_error_condition_enum_v<ErrorConditionEnum>} is \tcode{true}.
13401343

13411344
\pnum
13421345
\ensures
@@ -1365,7 +1368,8 @@
13651368

13661369
\begin{itemdescr}
13671370
\pnum
1368-
\constraints \tcode{is_error_condition_enum_v<ErrorConditionEnum>} is \tcode{true}.
1371+
\constraints
1372+
\tcode{is_error_condition_enum_v<ErrorConditionEnum>} is \tcode{true}.
13691373

13701374
\pnum
13711375
\ensures

source/iostreams.tex

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5554,7 +5554,8 @@
55545554

55555555
\begin{itemdescr}
55565556
\pnum
5557-
\constraints The expression \tcode{is >> std::forward<T>(x)} is well-formed when treated as an unevaluated operand.
5557+
\constraints
5558+
The expression \tcode{is >> std::forward<T>(x)} is well-formed when treated as an unevaluated operand.
55585559

55595560
\pnum
55605561
\effects
@@ -6764,7 +6765,8 @@
67646765

67656766
\begin{itemdescr}
67666767
\pnum
6767-
\constraints The expression \tcode{os << x} is well-formed when treated as an unevaluated operand.
6768+
\constraints
6769+
The expression \tcode{os << x} is well-formed when treated as an unevaluated operand.
67686770

67696771
\pnum
67706772
\effects
@@ -7780,7 +7782,8 @@
77807782

77817783
\begin{itemdescr}
77827784
\pnum
7783-
\constraints \tcode{SAlloc} is a type that
7785+
\constraints
7786+
\tcode{SAlloc} is a type that
77847787
qualifies as an allocator\iref{container.requirements.general}.
77857788

77867789
\pnum
@@ -7865,7 +7868,8 @@
78657868

78667869
\begin{itemdescr}
78677870
\pnum
7868-
\constraints \tcode{is_same_v<SAlloc,Allocator>} is \tcode{false}.
7871+
\constraints
7872+
\tcode{is_same_v<SAlloc,Allocator>} is \tcode{false}.
78697873

78707874
\pnum
78717875
\effects
@@ -8649,7 +8653,8 @@
86498653

86508654
\begin{itemdescr}
86518655
\pnum
8652-
\constraints \tcode{is_same_v<SAlloc,Allocator>} is \tcode{false}.
8656+
\constraints
8657+
\tcode{is_same_v<SAlloc,Allocator>} is \tcode{false}.
86538658

86548659
\pnum
86558660
\effects
@@ -8974,7 +8979,8 @@
89748979

89758980
\begin{itemdescr}
89768981
\pnum
8977-
\constraints \tcode{is_same_v<SAlloc,Allocator>} is \tcode{false}.
8982+
\constraints
8983+
\tcode{is_same_v<SAlloc,Allocator>} is \tcode{false}.
89788984

89798985
\pnum
89808986
\effects

source/iterators.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4211,7 +4211,8 @@
42114211

42124212
\begin{itemdescr}
42134213
\pnum
4214-
\constraints \tcode{Iterator} satisfies \libconcept{copy_constructible}.
4214+
\constraints
4215+
\tcode{Iterator} satisfies \libconcept{copy_constructible}.
42154216

42164217
\pnum
42174218
\expects

source/lib-intro.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,8 @@
592592
\requires the preconditions for calling the function.
593593

594594
\item
595-
\constraints the conditions for the function's participation
595+
\constraints
596+
the conditions for the function's participation
596597
in overload resolution\iref{over.match}.
597598
\begin{note}
598599
Failure to meet such a condition results in the function's silent non-viability.

source/support.tex

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@
346346

347347
\begin{itemdescr}
348348
\pnum
349-
\constraints \tcode{is_integral_v<IntType>} is \tcode{true}.
349+
\constraints
350+
\tcode{is_integral_v<IntType>} is \tcode{true}.
350351

351352
\pnum
352353
\effects
@@ -362,7 +363,8 @@
362363

363364
\begin{itemdescr}
364365
\pnum
365-
\constraints \tcode{is_integral_v<IntType>} is \tcode{true}.
366+
\constraints
367+
\tcode{is_integral_v<IntType>} is \tcode{true}.
366368

367369
\pnum
368370
\effects
@@ -381,7 +383,8 @@
381383

382384
\begin{itemdescr}
383385
\pnum
384-
\constraints \tcode{is_integral_v<IntType>} is \tcode{true}.
386+
\constraints
387+
\tcode{is_integral_v<IntType>} is \tcode{true}.
385388

386389
\pnum
387390
\effects
@@ -397,7 +400,8 @@
397400

398401
\begin{itemdescr}
399402
\pnum
400-
\constraints \tcode{is_integral_v<IntType>} is \tcode{true}.
403+
\constraints
404+
\tcode{is_integral_v<IntType>} is \tcode{true}.
401405

402406
\pnum
403407
\effects
@@ -509,7 +513,8 @@
509513

510514
\begin{itemdescr}
511515
\pnum
512-
\constraints \tcode{is_integral_v<IntType>} is \tcode{true}.
516+
\constraints
517+
\tcode{is_integral_v<IntType>} is \tcode{true}.
513518

514519
\pnum
515520
\effects

source/utilities.tex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,8 @@
12611261

12621262
\begin{itemdescr}
12631263
\pnum
1264-
\constraints \tcode{is_move_constructible_v<$\tcode{T}_i$>} is \tcode{true} for all $i$.
1264+
\constraints
1265+
\tcode{is_move_constructible_v<$\tcode{T}_i$>} is \tcode{true} for all $i$.
12651266

12661267
\pnum
12671268
\effects
@@ -9195,7 +9196,8 @@
91959196

91969197
\begin{itemdescr}
91979198
\pnum
9198-
\constraints \tcode{is_move_constructible_v<D>} is \tcode{true}.
9199+
\constraints
9200+
\tcode{is_move_constructible_v<D>} is \tcode{true}.
91999201

92009202
\pnum
92019203
\requires If \tcode{D} is not a reference type,
@@ -9301,7 +9303,8 @@
93019303

93029304
\begin{itemdescr}
93039305
\pnum
9304-
\constraints \tcode{is_move_assignable_v<D>} is \tcode{true}.
9306+
\constraints
9307+
\tcode{is_move_assignable_v<D>} is \tcode{true}.
93059308

93069309
\pnum
93079310
\requires If \tcode{D} is not a reference type, \tcode{D} shall meet the

tools/check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ grep -n 'opt{}' *.tex && exit 1
2828
grep -n "// not defined" $texfiles | sed 's/$/ <--- use \\notdef instead/' | grep . && exit 1
2929

3030
# Library element introducer followed by stuff.
31-
grep -ne '^\\\(contraints\|mandates\|expects\|effects\|sync\|ensures\|returns\|throws\|complexity\|remarks\|errors\).\+$' $texfiles && exit 1
32-
# Fixup: sed 's/^\\\(contraints\|mandates\|expects\|effects\|sync\|ensures\|returns\|throws\|complexity\|remarks\|errors\)\s*\(.\)/\\\1\n\2/'
31+
grep -ne '^\\\(constraints\|mandates\|expects\|effects\|sync\|ensures\|returns\|throws\|complexity\|remarks\|errors\).\+$' $texfiles && exit 1
32+
# Fixup: sed 's/^\\\(constraints\|mandates\|expects\|effects\|sync\|ensures\|returns\|throws\|complexity\|remarks\|errors\)\s*\(.\)/\\\1\n\2/'
3333
# Fixup: sed 's/^\\ //'
3434

3535
# Change marker in [diff] followed by stuff.

0 commit comments

Comments
 (0)