Skip to content

Commit 418c0e3

Browse files
authored
Merge pull request #861 from tkoeppe/index_review
Review of library index entries. Thanks to @AlisdairM for all the work!
2 parents cd3e040 + 63e697f commit 418c0e3

File tree

6 files changed

+847
-738
lines changed

6 files changed

+847
-738
lines changed

source/diagnostics.tex

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@
486486

487487
\rSec2[underflow.error]{Class \tcode{underflow_error}}
488488

489-
\indexlibrary{\idxcode{overflow_error}}%
489+
\indexlibrary{\idxcode{underflow_error}}%
490490
\begin{codeblock}
491491
namespace std {
492492
class underflow_error : public runtime_error {
@@ -769,6 +769,8 @@
769769
libraries unchanged.
770770

771771
\rSec2[system_error.syn]{Header \tcode{<system_error>} synopsis}
772+
\indextext{\idxhdr{system_error}}%
773+
\indexlibrary{\idxhdr{system_error}}%
772774
\indexlibrary{\idxcode{error_category}}%
773775
\indexlibrary{\idxcode{error_code}}%
774776
\indexlibrary{\idxcode{error_condition}}%
@@ -1044,8 +1046,7 @@
10441046
\returns \tcode{this == \&rhs}.
10451047
\end{itemdescr}
10461048

1047-
\indexlibrary{\idxcode{operator"!=}!\idxcode{error_category}}%
1048-
\indexlibrary{\idxcode{error_category}!\idxcode{operator"!=}}%
1049+
\indexlibrarymember{operator"!=}{error_category}%
10491050
\begin{itemdecl}
10501051
bool operator!=(const error_category& rhs) const noexcept;
10511052
\end{itemdecl}
@@ -1387,7 +1388,7 @@
13871388
error conditions. \begin{note} \tcode{error_condition} values are portable abstractions,
13881389
while \tcode{error_code} values~(\ref{syserr.errcode}) are implementation specific. \end{note}
13891390

1390-
\indexlibrary{\idxcode{error_code}}%
1391+
\indexlibrary{\idxcode{error_condition}}%
13911392
\begin{codeblock}
13921393
namespace std {
13931394
class error_condition {
@@ -1615,10 +1616,8 @@
16151616
\returns \tcode{lhs.category() == rhs.category() \&\& lhs.value() == rhs.value()}.
16161617
\end{itemdescr}
16171618

1618-
\indexlibrary{\idxcode{operator"!=}!\idxcode{error_code}}%
1619-
\indexlibrary{\idxcode{error_code}!\idxcode{operator"!=}}%
1620-
\indexlibrary{\idxcode{operator"!=}!\idxcode{error_condition}}%
1621-
\indexlibrary{\idxcode{error_condition}!\idxcode{operator"!=}}%
1619+
\indexlibrarymember{operator"!=}{error_code}%
1620+
\indexlibrarymember{operator"!=}{error_condition}%
16221621
\begin{itemdecl}
16231622
bool operator!=(const error_code& lhs, const error_code& rhs) noexcept;
16241623
bool operator!=(const error_code& lhs, const error_condition& rhs) noexcept;
@@ -1633,7 +1632,7 @@
16331632

16341633
\rSec2[syserr.hash]{System error hash support}
16351634

1636-
\indexlibrary{\idxcode{hash}}%
1635+
\indexlibrary{\idxcode{hash}!\idxcode{error_code}}%
16371636
\begin{itemdecl}
16381637
template <> struct hash<error_code>;
16391638
\end{itemdecl}
@@ -1672,7 +1671,7 @@
16721671
const char* what_arg);
16731672
system_error(int ev, const error_category& ecat);
16741673
const error_code& code() const noexcept;
1675-
const char* what() const noexcept;
1674+
const char* what() const noexcept override;
16761675
};
16771676
} // namespace std
16781677
\end{codeblock}
@@ -1780,7 +1779,7 @@
17801779

17811780
\indexlibrarymember{what}{system_error}%
17821781
\begin{itemdecl}
1783-
const char* what() const noexcept;
1782+
const char* what() const noexcept override;
17841783
\end{itemdecl}
17851784

17861785
\begin{itemdescr}

0 commit comments

Comments
 (0)