]> sourceware.org Git - libabigail.git/commitdiff
Improve code comments and whitespace.
authorGiuliano Procida <gprocida@google.com>
Wed, 10 Jun 2020 11:59:31 +0000 (12:59 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 25 Jun 2020 15:49:57 +0000 (17:49 +0200)
These are zero impact changes.

* include/abg-fwd.h: Correct doc-comment reference to
enum_type_decl.
* src/abg-comp-filter.cc: Fix doc-comment syntax.
* src/abg-comparison.cc (operator<<): In the diff_category
overload, fix code indentation.
* src/abg-default-reporter.cc (report): In the
class_or_union_diff overload, adjust comment to reflect that
the code is reporting changes between declaration-only and
defined types, in either direction.

Signed-off-by: Giuliano Procida <gprocida@google.com>
include/abg-fwd.h
src/abg-comp-filter.cc
src/abg-comparison.cc
src/abg-default-reporter.cc

index f6e0c5b286a16f450d1f66273dbdab63cb00cc72..999b071b5664fcedcd3ae62e0b5e95243fb1156b 100644 (file)
@@ -152,7 +152,7 @@ typedef weak_ptr<typedef_decl> typedef_decl_wptr;
 
 class enum_type_decl;
 
-/// Convenience typedef for shared pointer on enum_type_decl.
+/// Convenience typedef for shared pointer to a @ref enum_type_decl.
 typedef shared_ptr<enum_type_decl> enum_type_decl_sptr;
 
 class class_or_union;
index 5f9dd6fe8880f701bb75779cc6e67432cd089b5a..372da8e9b6c906804d347df12fbc9a216b0a8b78 100644 (file)
@@ -961,8 +961,8 @@ has_class_decl_only_def_change(const class_or_union_sptr& first,
 /// other one is defined.
 ///
 /// @param diff the diff node to consider.
-////
-//// @return true if the class_or_union_diff carries a change in which
+///
+/// @return true if the class_or_union_diff carries a change in which
 /// the two classes are different by the fact that one is a decl-only
 /// and the other one is defined.
 bool
index adfe299207dafc72ea430dd229bc7a57b993ec5a..50bc9611e78dcf48e828ff56affb69ec6b41482c 100644 (file)
@@ -3132,7 +3132,7 @@ operator<<(ostream& o, diff_category c)
       emitted_a_category |= true;
     }
 
-    if (c & FN_RETURN_TYPE_CV_CHANGE_CATEGORY)
+  if (c & FN_RETURN_TYPE_CV_CHANGE_CATEGORY)
     {
       if (emitted_a_category)
        o << "|";
@@ -3140,7 +3140,7 @@ operator<<(ostream& o, diff_category c)
       emitted_a_category |= true;
     }
 
-   if (c & VAR_TYPE_CV_CHANGE_CATEGORY)
+  if (c & VAR_TYPE_CV_CHANGE_CATEGORY)
     {
       if (emitted_a_category)
        o << "|";
@@ -3148,7 +3148,7 @@ operator<<(ostream& o, diff_category c)
       emitted_a_category |= true;
     }
 
-    if (c & VOID_PTR_TO_PTR_CHANGE_CATEGORY)
+  if (c & VOID_PTR_TO_PTR_CHANGE_CATEGORY)
     {
       if (emitted_a_category)
        o << "|";
@@ -3156,7 +3156,7 @@ operator<<(ostream& o, diff_category c)
       emitted_a_category |= true;
     }
 
-    if (c & BENIGN_INFINITE_ARRAY_CHANGE_CATEGORY)
+  if (c & BENIGN_INFINITE_ARRAY_CHANGE_CATEGORY)
     {
       if (emitted_a_category)
        o << "|";
index 80cb663812e1a976f8c48fd2693d4a01b753ed8f..7c98d8d70de6cfc45f3779ce1458d5d18861da31 100644 (file)
@@ -844,7 +844,7 @@ default_reporter::report(const class_or_union_diff& d,
 
   const diff_context_sptr& ctxt = d.context();
 
-  // Report class decl-only -> definition change.
+  // Report class decl-only <-> definition change.
   if (ctxt->get_allowed_category() & CLASS_DECL_ONLY_DEF_CHANGE_CATEGORY)
     if (filtering::has_class_decl_only_def_change(first, second))
       {
This page took 0.049553 seconds and 5 git commands to generate.