Skip to content

Commit be07cd4

Browse files
frederick-vs-jatkoeppe
authored andcommitted
[diagnostics] Exposition-only formatting for members
1 parent b55ad4c commit be07cd4

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

source/diagnostics.tex

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,8 +1088,8 @@
10881088
explicit operator bool() const noexcept;
10891089

10901090
private:
1091-
int val_; // \expos
1092-
const error_category* cat_; // \expos
1091+
int @\exposid{val_}@; // \expos
1092+
const error_category* @\exposid{cat_}@; // \expos
10931093
};
10941094

10951095
// \ref{syserr.errcode.nonmembers}, non-member functions
@@ -1111,8 +1111,8 @@
11111111
\begin{itemdescr}
11121112
\pnum
11131113
\effects
1114-
Initializes \tcode{val_} with \tcode{0}
1115-
and \tcode{cat_} with \tcode{\&system_category()}.
1114+
Initializes \exposid{val_} with \tcode{0}
1115+
and \exposid{cat_} with \tcode{\&system_category()}.
11161116
\end{itemdescr}
11171117

11181118
\indexlibraryctor{error_code}%
@@ -1123,8 +1123,8 @@
11231123
\begin{itemdescr}
11241124
\pnum
11251125
\effects
1126-
Initializes \tcode{val_} with \tcode{val}
1127-
and \tcode{cat_} with \tcode{\&cat}.
1126+
Initializes \exposid{val_} with \tcode{val}
1127+
and \exposid{cat_} with \tcode{\&cat}.
11281128
\end{itemdescr}
11291129

11301130
\indexlibraryctor{error_code}%
@@ -1157,7 +1157,7 @@
11571157
\begin{itemdescr}
11581158
\pnum
11591159
\ensures
1160-
\tcode{val_ == val} and \tcode{cat_ == \&cat}.
1160+
\tcode{\exposid{val_} == val} and \tcode{\exposid{cat_} == \&cat}.
11611161
\end{itemdescr}
11621162

11631163
\indexlibrarymember{operator=}{error_code}%
@@ -1206,7 +1206,7 @@
12061206
\begin{itemdescr}
12071207
\pnum
12081208
\returns
1209-
\tcode{val_}.
1209+
\exposid{val_}.
12101210
\end{itemdescr}
12111211

12121212
\indexlibrarymember{category}{error_code}%
@@ -1217,7 +1217,7 @@
12171217
\begin{itemdescr}
12181218
\pnum
12191219
\returns
1220-
\tcode{*cat_}.
1220+
\tcode{*\exposid{cat_}}.
12211221
\end{itemdescr}
12221222

12231223
\indexlibrarymember{default_error_condition}{error_code}%
@@ -1315,8 +1315,8 @@
13151315
explicit operator bool() const noexcept;
13161316

13171317
private:
1318-
int val_; // \expos
1319-
const error_category* cat_; // \expos
1318+
int @\exposid{val_}@; // \expos
1319+
const error_category* @\exposid{cat_}@; // \expos
13201320
};
13211321
}
13221322
\end{codeblock}
@@ -1331,8 +1331,8 @@
13311331
\begin{itemdescr}
13321332
\pnum
13331333
\effects
1334-
Initializes \tcode{val_} with \tcode{0}
1335-
and \tcode{cat_} with \tcode{\&generic_category()}.
1334+
Initializes \exposid{val_} with \tcode{0}
1335+
and \exposid{cat_} with \tcode{\&generic_category()}.
13361336
\end{itemdescr}
13371337

13381338
\indexlibraryctor{error_condition}%
@@ -1343,8 +1343,8 @@
13431343
\begin{itemdescr}
13441344
\pnum
13451345
\effects
1346-
Initializes \tcode{val_} with \tcode{val}
1347-
and \tcode{cat_} with \tcode{\&cat}.
1346+
Initializes \exposid{val_} with \tcode{val}
1347+
and \exposid{cat_} with \tcode{\&cat}.
13481348
\end{itemdescr}
13491349

13501350
\indexlibraryctor{error_condition}%
@@ -1378,7 +1378,7 @@
13781378
\begin{itemdescr}
13791379
\pnum
13801380
\ensures
1381-
\tcode{val_ == val} and \tcode{cat_ == \&cat}.
1381+
\tcode{\exposid{val_} == val} and \tcode{\exposid{cat_} == \&cat}.
13821382
\end{itemdescr}
13831383

13841384
\indexlibrarymember{operator=}{error_condition}%
@@ -1426,7 +1426,7 @@
14261426
\begin{itemdescr}
14271427
\pnum
14281428
\returns
1429-
\tcode{val_}.
1429+
\exposid{val_}.
14301430
\end{itemdescr}
14311431

14321432
\indexlibrarymember{category}{error_condition}%
@@ -1437,7 +1437,7 @@
14371437
\begin{itemdescr}
14381438
\pnum
14391439
\returns
1440-
\tcode{*cat_}.
1440+
\tcode{*\exposid{cat_}}.
14411441
\end{itemdescr}
14421442

14431443
\indexlibrarymember{message}{error_condition}%
@@ -1998,7 +1998,7 @@
19981998
allocator_traits<Allocator>::is_always_equal::value);
19991999

20002000
private:
2001-
vector<value_type, allocator_type> frames_; // \expos
2001+
vector<value_type, allocator_type> @\exposid{frames_}@; // \expos
20022002
};
20032003
}
20042004
\end{codeblock}
@@ -2030,17 +2030,17 @@
20302030
\pnum
20312031
\returns
20322032
A \tcode{basic_stacktrace} object
2033-
with \tcode{frames_} storing
2033+
with \exposid{frames_} storing
20342034
the stacktrace of the current evaluation in the current thread of execution, or
20352035
an empty \tcode{basic_stacktrace} object
2036-
if the initialization of \tcode{frames_} failed.
2037-
\tcode{alloc} is passed to the constructor of the \tcode{frames_} object.
2036+
if the initialization of \exposid{frames_} failed.
2037+
\tcode{alloc} is passed to the constructor of the \exposid{frames_} object.
20382038

20392039
\begin{note}
20402040
If the stacktrace was successfully obtained,
2041-
then \tcode{frames_.front()} is the \tcode{stacktrace_entry}
2041+
then \tcode{\exposid{frames_}.front()} is the \tcode{stacktrace_entry}
20422042
representing approximately the current evaluation, and
2043-
\tcode{frames_.back()} is the \tcode{stacktrace_entry}
2043+
\tcode{\exposid{frames_}.back()} is the \tcode{stacktrace_entry}
20442044
representing approximately the initial function of
20452045
the current thread of execution.
20462046
\end{note}
@@ -2061,10 +2061,10 @@
20612061
\pnum
20622062
\returns
20632063
A \tcode{basic_stacktrace} object
2064-
where \tcode{frames_} is direct-non-list-initialized from arguments
2064+
where \exposid{frames_} is direct-non-list-initialized from arguments
20652065
\tcode{t.begin() + min(n, skip)}, \tcode{t.end()}, and \tcode{alloc},
20662066
or an empty \tcode{basic_stacktrace} object
2067-
if the initialization of \tcode{frames_} failed.
2067+
if the initialization of \exposid{frames_} failed.
20682068
\end{itemdescr}
20692069

20702070
\indexlibrarymember{current}{basic_stacktrace}%
@@ -2086,11 +2086,11 @@
20862086
\pnum
20872087
\returns
20882088
A \tcode{basic_stacktrace} object
2089-
where \tcode{frames_} is direct-non-list-initialized from arguments
2089+
where \exposid{frames_} is direct-non-list-initialized from arguments
20902090
\tcode{t.begin() + min(n, skip)}, \tcode{t.begin() + min(n, skip + max_depth)},
20912091
and \tcode{alloc},
20922092
or an empty \tcode{basic_stacktrace} object
2093-
if the initialization of \tcode{frames_} failed.
2093+
if the initialization of \exposid{frames_} failed.
20942094
\end{itemdescr}
20952095

20962096
\indexlibraryctor{basic_stacktrace}%
@@ -2112,7 +2112,7 @@
21122112
\begin{itemdescr}
21132113
\pnum
21142114
\effects
2115-
\tcode{alloc} is passed to the \tcode{frames_} constructor.
2115+
\tcode{alloc} is passed to the \exposid{frames_} constructor.
21162116

21172117
\pnum
21182118
\ensures
@@ -2162,7 +2162,7 @@
21622162
\begin{itemdescr}
21632163
\pnum
21642164
\returns
2165-
\tcode{frames_.get_allocator()}.
2165+
\tcode{\exposid{frames_}.get_allocator()}.
21662166
\end{itemdescr}
21672167

21682168
\indexlibrarymember{begin}{basic_stacktrace}%
@@ -2175,7 +2175,7 @@
21752175
\begin{itemdescr}
21762176
\pnum
21772177
\returns
2178-
An iterator referring to the first element in \tcode{frames_}.
2178+
An iterator referring to the first element in \exposid{frames_}.
21792179
If \tcode{empty()} is \tcode{true},
21802180
then it returns the same value as \tcode{end()}.
21812181
\end{itemdescr}
@@ -2227,7 +2227,7 @@
22272227
\begin{itemdescr}
22282228
\pnum
22292229
\returns
2230-
\tcode{frames_.empty()}.
2230+
\tcode{\exposid{frames_}.empty()}.
22312231
\end{itemdescr}
22322232

22332233
\indexlibrarymember{size}{basic_stacktrace}%
@@ -2238,7 +2238,7 @@
22382238
\begin{itemdescr}
22392239
\pnum
22402240
\returns
2241-
\tcode{frames_.size()}.
2241+
\tcode{\exposid{frames_}.size()}.
22422242
\end{itemdescr}
22432243

22442244
\indexlibrarymember{max_size}{basic_stacktrace}%
@@ -2249,7 +2249,7 @@
22492249
\begin{itemdescr}
22502250
\pnum
22512251
\returns
2252-
\tcode{frames_.max_size()}.
2252+
\tcode{\exposid{frames_}.max_size()}.
22532253
\end{itemdescr}
22542254

22552255
\indexlibrarymember{operator[]}{basic_stacktrace}%
@@ -2264,7 +2264,7 @@
22642264

22652265
\pnum
22662266
\returns
2267-
\tcode{frames_[frame_no]}.
2267+
\tcode{\exposid{frames_}[frame_no]}.
22682268

22692269
\pnum
22702270
\throws
@@ -2279,7 +2279,7 @@
22792279
\begin{itemdescr}
22802280
\pnum
22812281
\returns
2282-
\tcode{frames_[frame_no]}.
2282+
\tcode{\exposid{frames_}[frame_no]}.
22832283

22842284
\pnum
22852285
\throws

0 commit comments

Comments
 (0)