From 777ffc12811ab9ab2c796cb1785cd67836cb944e Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Tue, 3 Dec 2019 18:35:10 +0100 Subject: [PATCH] Misc typo fixes * src/abg-comparison.cc (leaf_diff_node_marker_visitor::visit_begin): Fix typo in comments. * src/abg-corpus.cc (corpus::get_types_not_reachable_from_public_interfaces): Likewise. * src/abg-ir.cc (decl_base::set_has_anonymous_parent): Likewise. * src/abg-reader.cc (add_read_context_suppressions): Likewise. Signed-off-by: Dodji Seketeli --- src/abg-comparison.cc | 5 +++-- src/abg-corpus.cc | 2 +- src/abg-ir.cc | 4 ++-- src/abg-reader.cc | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/abg-comparison.cc b/src/abg-comparison.cc index 962811a7..06745d31 100644 --- a/src/abg-comparison.cc +++ b/src/abg-comparison.cc @@ -10737,8 +10737,9 @@ struct leaf_diff_node_marker_visitor : public diff_node_visitor if (diff *iface_diff = get_current_topmost_iface_diff()) { type_or_decl_base_sptr iface = iface_diff->first_subject(); - // So this diff node carries a leaf change. Let's add it - // to the set of of leaf diffs of corpus_diff_node. + // So, this diff node that is reachable from a global + // function or variable carries a leaf change. Let's add + // it to the set of of leaf diffs of corpus_diff_node. const_cast(corpus_diff_node)-> get_leaf_diffs().insert_diff_node(d, iface); } diff --git a/src/abg-corpus.cc b/src/abg-corpus.cc index 4088ff99..baed8e53 100644 --- a/src/abg-corpus.cc +++ b/src/abg-corpus.cc @@ -678,7 +678,7 @@ corpus::type_is_reachable_from_public_interfaces(const type_base& t) const != priv_->get_public_types_pretty_representations()->end()); } -/// Getter ofa a sorted vector of the types that are *NOT* reachable +/// Getter of a sorted vector of the types that are *NOT* reachable /// from public interfaces. /// /// Note that for this to be non-empty, the libabigail reader that diff --git a/src/abg-ir.cc b/src/abg-ir.cc index 9ac24c38..e4fd9940 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -3270,7 +3270,7 @@ operator==(const type_or_decl_base_sptr& l, const type_or_decl_base_sptr& r) /// /// @param l the left-hand operand of the equality. /// -/// @param r the right-hand operatnr of the equality. +/// @param r the right-hand operator of the equality. /// /// @return true iff @p l is different from @p r. bool @@ -3623,7 +3623,7 @@ decl_base::get_has_anonymous_parent() const /// Set the "has_anonymous_parent" flag of the current declaration. /// -/// Having an anoymous parent means having a anonymous parent scope +/// Having an anonymous parent means having a anonymous parent scope /// (containing type or namespace) which is either direct or indirect. /// /// @param f set the flag which says if the current decl has a direct diff --git a/src/abg-reader.cc b/src/abg-reader.cc index 61d5de96..eef64326 100644 --- a/src/abg-reader.cc +++ b/src/abg-reader.cc @@ -1769,7 +1769,7 @@ read_elf_needed_from_input(read_context& ctxt, /// are only considered during the construction of the ABI corpus. /// For instance, they are not taken into account during e.g /// comparisons of two ABI corpora that might happen later. If you -/// want to apply suppression specificatins to the comparison (or +/// want to apply suppression specifications to the comparison (or /// reporting) of ABI corpora please refer to the documentation of the /// @ref diff_context type to learn how to set suppressions that are /// to be used in that context. -- 2.34.1