Misc style adjustements
authorDodji Seketeli <dodji@redhat.com>
Thu, 28 Jun 2018 10:58:28 +0000 (12:58 +0200)
committerDodji Seketeli <dodji@redhat.com>
Thu, 28 Jun 2018 11:04:47 +0000 (13:04 +0200)
* include/abg-suppression.h
(function_suppression::ADDED_FUNCTION_CHANGE_KIND): Fix the
comment of this enumerator.
(suppresses_variable): Cleanup parameter name.
* src/abg-comparison.cc: Remove useless horizontal space.
* src/abg-suppression.cc
(variable_suppression::suppresses_variable): Fix typo.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
include/abg-suppression.h
src/abg-comparison.cc
src/abg-suppression.cc

index cb4742a..6cb83a1 100644 (file)
@@ -419,8 +419,7 @@ public:
     UNDEFINED_CHANGE_KIND,
     /// A change in a sub-type of the function.
     FUNCTION_SUBTYPE_CHANGE_KIND = 1,
-    /// The function was added to the second second subject of the
-    /// diff.
+    /// The function was added to the second subject of the diff.
     ADDED_FUNCTION_CHANGE_KIND = 1 << 1,
     /// The function was deleted from the second subject of the diff.
     DELETED_FUNCTION_CHANGE_KIND = 1 << 2,
@@ -724,12 +723,12 @@ public:
   suppresses_diff(const diff* d) const;
 
   bool
-  suppresses_variable(const var_decl* fn,
+  suppresses_variable(const var_decl* var,
                      change_kind k,
                      const diff_context_sptr cxt) const;
 
   bool
-  suppresses_variable(const var_decl_sptr fn,
+  suppresses_variable(const var_decl_sptr var,
                      change_kind k,
                      const diff_context_sptr cxt) const;
 
index 1617c1e..52a85d1 100644 (file)
@@ -868,7 +868,6 @@ bool
 is_child_node_of_base_diff(const diff* diff)
 {return diff && is_base_diff(diff->parent_node());}
 
-
 /// Test if the current diff node has an ancestor node that has been
 /// filtered out.
 ///
index 3676b85..b8337bc 100644 (file)
@@ -3535,7 +3535,7 @@ variable_suppression::suppresses_variable(const var_decl* var,
        return false;
     }
 
-  // Check for the "type_name" and tye_name_regex properties match.
+  // Check for the "type_name" and type_name_regex properties match.
   string var_type_name =
     get_type_declaration(var->get_type())->get_qualified_name();