Skip to content

Commit 4035a56

Browse files
Reduce the number of warnings produced by make doc (libsemigroups#681)
* Balance adapter groups * Ignore formatter * Fix \ref at end of line * Fix dot function links * Add class for ref * Fix template type in ref * Fix param not found * fix param not documented * Add BMat8 doc * Add punctuation to doc * Don't parse formatters * Fix bad references * Fix more bad references * Manually exclude files from doxygen * Add more ifndef doxygen * Fix spacing * Add presentation deduction guides * format * linting * Remove ref to libsemigroups::detail::Rule * Remove \ref for HPCombi::Class These are classes that we don't own, and hence don't have the documentation for. * Fix doc warnings in Konieczny * Fix more doc warnings * Document Node and Edge * Document call operators in word range * Document is_standardized * Document throw_if function * Fix some no docs * Fix doxygen commands with line breaks * Punctuation * Add updated to-table * spelling
1 parent 92c5cfd commit 4035a56

53 files changed

Lines changed: 1232 additions & 1062 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/Doxyfile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,23 @@ RECURSIVE = YES
11121112
# Note that relative paths are relative to the directory from which Doxygen is
11131113
# run.
11141114

1115-
# EXCLUDE = ../include/libsemigroups/detail/
1115+
EXCLUDE = ../include/libsemigroups/detail/bruidhinn-traits.hpp \
1116+
../include/libsemigroups/detail/citow.hpp \
1117+
../include/libsemigroups/detail/containers.hpp \
1118+
../include/libsemigroups/detail/felsch-graph.hpp \
1119+
../include/libsemigroups/detail/formatters.hpp \
1120+
../include/libsemigroups/detail/int-range.hpp \
1121+
../include/libsemigroups/detail/iterator.hpp \
1122+
../include/libsemigroups/detail/kambites-nf.hpp \
1123+
../include/libsemigroups/detail/multi-string-view.hpp \
1124+
../include/libsemigroups/detail/path-iterators.hpp \
1125+
../include/libsemigroups/detail/pool.hpp \
1126+
../include/libsemigroups/detail/report.hpp \
1127+
../include/libsemigroups/detail/stl.hpp \
1128+
../include/libsemigroups/detail/string.hpp \
1129+
../include/libsemigroups/detail/timer.hpp \
1130+
../include/libsemigroups/detail/uf.hpp \
1131+
../include/libsemigroups/detail/word-iterators.hpp
11161132

11171133
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
11181134
# directories that are symbolic links (a Unix file system feature) are excluded

docs/pictures/to-table.svg

Lines changed: 3 additions & 3 deletions
Loading

include/libsemigroups/action.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ namespace libsemigroups {
244244
//! \sa ImageRightAction, ImageLeftAction
245245
using action_type = Func;
246246

247-
//! \brief Insertion operator
247+
//! \brief Insertion operator.
248248
//!
249249
//! This member function allows Action objects to be inserted into an
250250
//! std::ostringstream.
@@ -257,7 +257,7 @@ namespace libsemigroups {
257257
operator<<(std::ostringstream& os,
258258
Action<Elment, Pint, Fnc, Trits, LftOrRight> const& action);
259259

260-
//! \brief Insertion operator
260+
//! \brief Insertion operator.
261261
//!
262262
//! This member function allows Action objects to be inserted into a
263263
//! std::ostream.
@@ -392,8 +392,8 @@ namespace libsemigroups {
392392
// Action - modifiers - public
393393
////////////////////////////////////////////////////////////////////////
394394

395-
//! \brief Increase the capacity to a value that is greater or equal to \p
396-
//! val.
395+
//! \brief Increase the capacity to a value that is greater or equal to
396+
//! \p val.
397397
//!
398398
//! Increase the capacity to a value that is greater or equal to \p val.
399399
//!
@@ -530,8 +530,8 @@ namespace libsemigroups {
530530
//! \param pos the index of a point.
531531
//!
532532
//! \returns
533-
//! A \ref const_reference_point_type to the point in position \p
534-
//! pos of the currently enumerated points.
533+
//! A \ref const_reference_point_type to the point in position
534+
//! \p pos of the currently enumerated points.
535535
//!
536536
//! \throws
537537
//! std::out_of_range if `!(pos < current_size())`.

include/libsemigroups/adapters.hpp

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ namespace libsemigroups {
130130
//! and/or `constexpr` also).
131131
//!
132132
//! The return value of the call operator ought to indicate the degree of a
133-
//! `Element` instance which may or may not depend on the parameter \p
134-
//! x. The degree of a permutation, for instance, would be the the number of
135-
//! points it acts on, the degree of a matrix is its dimension, and so on.
133+
//! `Element` instance which may or may not depend on the parameter
134+
//! \p x. The degree of a permutation, for instance, would be the the number
135+
//! of points it acts on, the degree of a matrix is its dimension, and so on.
136136
//! This is used, for example, by SchreierSimsTraits in some member functions
137137
//! to determine whether it is known *a priori* that a permutation does not
138138
//! belong to the object, because it acts on too many points.
@@ -412,7 +412,7 @@ namespace libsemigroups {
412412
//! * SchreierSimsTraits
413413
template <typename Value, typename = void>
414414
struct EqualTo {
415-
//! \brief Compare \p x and \p y with std::equal_to
415+
//! \brief Compare \p x and \p y with std::equal_to.
416416
//!
417417
//! This call operator compares \p x and \p y using std::equal_to with
418418
//! template parameter \c Value.
@@ -444,12 +444,12 @@ namespace libsemigroups {
444444
//! * SchreierSimsTraits
445445
template <typename Value, typename = void>
446446
struct Hash {
447-
//! \brief Hash \p x using std::hash
447+
//! \brief Hash \p x using std::hash.
448448
//!
449449
//! This call operator hashes \p x using std::hash with template parameter
450450
//! \c Value.
451451
//!
452-
//! \param x the value to hash
452+
//! \param x the value to hash.
453453
//!
454454
//! \returns A hash value for \p x, a value of type `size_t`.
455455
size_t operator()(Value const& x) const {
@@ -474,7 +474,7 @@ namespace libsemigroups {
474474
//! \par Used by KoniecznyTraits.
475475
template <typename T>
476476
struct Hash<std::vector<T>> {
477-
//! \brief Hashes \p vec
477+
//! \brief Hashes \p vec.
478478
//!
479479
//! This call operator hashes \p vec.
480480
//!
@@ -504,11 +504,11 @@ namespace libsemigroups {
504504
// TODO(later) What uses this?
505505
template <typename T, typename Hasher>
506506
struct Hash<std::vector<T>, Hasher> {
507-
//! \brief Hashes \p vec
507+
//! \brief Hashes \p vec.
508508
//!
509509
//! This call operator hashes \p vec.
510510
//!
511-
//! \param vec the value to hash
511+
//! \param vec the value to hash.
512512
//!
513513
//! \returns A hash value for \p vec, a value of type `size_t`.
514514
size_t operator()(std::vector<T> const& vec) const {
@@ -534,7 +534,7 @@ namespace libsemigroups {
534534
// TODO(later) What uses this?
535535
template <typename T, size_t N>
536536
struct Hash<std::array<T, N>> {
537-
//! \brief Hashes \p ar
537+
//! \brief Hashes \p ar.
538538
//!
539539
//! This call operator hashes \p ar.
540540
//!
@@ -565,7 +565,7 @@ namespace libsemigroups {
565565
// TODO(later) What uses this?
566566
template <typename S, typename T>
567567
struct Hash<std::pair<S, T>> {
568-
//! \brief Hashes \p x
568+
//! \brief Hashes \p x.
569569
//!
570570
//! This call operator hashes \p x.
571571
//!
@@ -595,7 +595,7 @@ namespace libsemigroups {
595595
//!
596596
//! This call operator hashes \p x.
597597
//!
598-
//! \param x the value to hash
598+
//! \param x the value to hash.
599599
//!
600600
//! \returns A hash value for \p x, a value of type `size_t`.
601601
size_t operator()(std::pair<size_t, size_t> const& x) const noexcept {
@@ -658,7 +658,7 @@ namespace libsemigroups {
658658
//! * SchreierSimsTraits
659659
template <typename Value, typename = void>
660660
struct Swap {
661-
//! \brief Swap \p x and \p y
661+
//! \brief Swap \p x and \p y.
662662
//!
663663
//! This call operator swaps \p x and \p y using std::swap.
664664
//!
@@ -677,9 +677,9 @@ namespace libsemigroups {
677677
//! This struct applies `ImageRightAction<Element, Point>` to every value in a
678678
//! container of type `Container`.
679679
//!
680-
//! \tparam Element the type of the elements of the semigroup
681-
//! \tparam Point the type of the points acted on
682-
//! \tparam Container a container of Point
680+
//! \tparam Element the type of the elements of the semigroup.
681+
//! \tparam Point the type of the points acted on.
682+
//! \tparam Container a container of Point.
683683
template <typename Element,
684684
typename Point,
685685
typename Container = std::vector<Point>>
@@ -722,8 +722,8 @@ namespace libsemigroups {
722722
//! This struct applies `OnTuples<Element, Point,
723723
//! Container>` to a container of `Container` and then sorts it.
724724
//!
725-
//! \tparam Element the type of elements
726-
//! \tparam Point the type of the points acted on
725+
//! \tparam Element the type of elements.
726+
//! \tparam Point the type of the points acted on.
727727
//! \tparam Container a container of \p Point (defaults to std::vector with
728728
//! template parameter \c Point).
729729
// TODO(2) add a template param for sorting
@@ -745,8 +745,8 @@ namespace libsemigroups {
745745
//!
746746
//! \param res a container of \c Point (such as std::vector or std::array)
747747
//! to hold the result.
748-
//! \param pt a container of \c Point
749-
//! \param p an element of type \c Element
748+
//! \param pt a container of \c Point.
749+
//! \param p an element of type \c Element.
750750
//!
751751
//! \complexity
752752
//! `pt.size()` times the complexity of `ImageRightAction<Element,
@@ -760,15 +760,11 @@ namespace libsemigroups {
760760
std::sort(res.begin(), res.end());
761761
}
762762
};
763-
//! @}
764763

765764
/////////////////////////////////////////////////////////////////////
766765
// KONIECZNY THINGS
767766
/////////////////////////////////////////////////////////////////////
768767

769-
//! \addtogroup adapters_no_default_group
770-
//! @{
771-
772768
//! \brief Adapter for lambda functions.
773769
//!
774770
//! Defined in `adapters.hpp`.
@@ -925,6 +921,5 @@ namespace libsemigroups {
925921
typename = void>
926922
struct Rank;
927923

928-
//! @}
929924
} // namespace libsemigroups
930925
#endif // LIBSEMIGROUPS_ADAPTERS_HPP_

include/libsemigroups/aho-corasick.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace libsemigroups {
5959

6060
//! \ingroup aho_corasick_group
6161
//!
62-
//! \brief For an implementation of the Aho-Corasick algorithm
62+
//! \brief For an implementation of the Aho-Corasick algorithm.
6363
//!
6464
//! Defined in `aho-corasick.hpp`.
6565
//!
@@ -386,7 +386,7 @@ namespace libsemigroups {
386386
//! If \f$W\f$ does not correspond to a terminal node, then calling this
387387
//! function does nothing.
388388
//!
389-
//! \tparam Iterator the type of the 1st and 2nd parameters
389+
//! \tparam Iterator the type of the 1st and 2nd parameters.
390390
//! \param first iterator pointing to the first letter of the word to add.
391391
//! \param last one beyond the last letter of the word to add.
392392
//!
@@ -486,7 +486,7 @@ namespace libsemigroups {
486486
return w;
487487
}
488488

489-
//! \brief Find the signature of a node (in-place)
489+
//! \brief Find the signature of a node (in-place).
490490
//!
491491
//! After validating \p i, this function performs the same as
492492
//! `signature_no_checks(w, i)`.
@@ -680,7 +680,7 @@ namespace libsemigroups {
680680
//! Constant.
681681
void validate_node_index(index_type i) const;
682682

683-
//! \brief Check if an index corresponds to a node currently in the trie
683+
//! \brief Check if an index corresponds to a node currently in the trie.
684684
//!
685685
//! This function validates whether the given index \p i corresponds to an
686686
//! active node.
@@ -891,8 +891,8 @@ namespace libsemigroups {
891891
//! throws.
892892
//!
893893
//! \sa \ref traverse_word_no_checks(AhoCorasick const& ac, index_type
894-
//! start, Iterator first, Iterator last), \ref
895-
//! AhoCorasick::validate_active_node_index.
894+
//! start, Iterator first, Iterator last),
895+
//! \ref AhoCorasick::validate_active_node_index.
896896
template <typename Iterator>
897897
[[nodiscard]] index_type traverse_word(AhoCorasick const& ac,
898898
index_type start,

0 commit comments

Comments
 (0)