]> sourceware.org Git - libabigail.git/commitdiff
Fix HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY spelling
authorGiuliano Procida <gprocida@google.com>
Fri, 5 Jun 2020 11:47:54 +0000 (12:47 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 11 Jun 2020 08:06:04 +0000 (10:06 +0200)
The enumerator HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY has a spelling
mistake in it. This changes fixes this and also corrects the spelling
of both this and HARMLESS_UNION_CHANGE_CATEORY when output.

* include/abg-comparison.h (enum diff_category): Rename
HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY enumerator to
HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY.
* src/abg-comp-filter.cc (categorize_harmless_diff_node): Replace
use of HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY enumerator with
HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY.
* src/abg-comparison.cc (get_default_harmless_categories_bitmap):
Replace use of HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY enumerator
with HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY.
(operator<<): In the diff_category overload, replace use of
HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY enumerator with
HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY and output correct
spelling for both this and HARMLESS_UNION_CHANGE_CATEGORY.
* tools/abicompat.cc (create_diff_context): Replace use of
HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY enumerator with
HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY.

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

index bb510a1812e90487cc5c1c84d0d9d64f23cf79e2..51a78d29d228a8bbf2f7e4ebf465f7a843a79f1d 100644 (file)
@@ -382,7 +382,7 @@ enum diff_category
 
   /// This means that a diff node in the sub-tree carries an a symbol
   /// alias change that is harmless.
-  HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY = 1 << 6,
+  HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY = 1 << 6,
 
   /// This means that a diff node in the sub-tree carries a harmless
   /// union change.
@@ -459,7 +459,7 @@ enum diff_category
   | NON_VIRT_MEM_FUN_CHANGE_CATEGORY
   | STATIC_DATA_MEMBER_CHANGE_CATEGORY
   | HARMLESS_ENUM_CHANGE_CATEGORY
-  | HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY
+  | HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY
   | HARMLESS_UNION_CHANGE_CATEGORY
   | HARMLESS_DATA_MEMBER_CHANGE_CATEGORY
   | SUPPRESSED_CATEGORY
index 67c2a1805d69e902e175da19f446147ee1dd1f94..5f9dd6fe8880f701bb75779cc6e67432cd089b5a 100644 (file)
@@ -1549,7 +1549,7 @@ categorize_harmless_diff_node(diff *d, bool pre)
        category |= HARMLESS_ENUM_CHANGE_CATEGORY;
 
       if (function_name_changed_but_not_symbol(d))
-       category |= HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY;
+       category |= HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY;
 
       if (has_fn_parm_type_top_cv_qual_change(d))
        category |= FN_PARM_TYPE_TOP_CV_CHANGE_CATEGORY;
index 7305a71afdf18953a6f769f3d1bfaf6b648889f8..5797c9dd7f3f2934ac5089b12fc85558e98c429c 100644 (file)
@@ -2954,7 +2954,7 @@ get_default_harmless_categories_bitmap()
          | abigail::comparison::NON_VIRT_MEM_FUN_CHANGE_CATEGORY
          | abigail::comparison::STATIC_DATA_MEMBER_CHANGE_CATEGORY
          | abigail::comparison::HARMLESS_ENUM_CHANGE_CATEGORY
-         | abigail::comparison::HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY
+         | abigail::comparison::HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY
          | abigail::comparison::HARMLESS_UNION_CHANGE_CATEGORY
          | abigail::comparison::HARMLESS_DATA_MEMBER_CHANGE_CATEGORY
          | abigail::comparison::CLASS_DECL_ONLY_DEF_CHANGE_CATEGORY
@@ -3052,11 +3052,11 @@ operator<<(ostream& o, diff_category c)
       emitted_a_category |= true;
     }
 
-  if (c & HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY)
+  if (c & HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY)
     {
       if (emitted_a_category)
        o << "|";
-      o << "HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY";
+      o << "HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY";
       emitted_a_category |= true;
     }
 
@@ -3064,7 +3064,7 @@ operator<<(ostream& o, diff_category c)
     {
       if (emitted_a_category)
        o << "|";
-      o << "HARMLESS_UNION_CHANGE_CATEORY";
+      o << "HARMLESS_UNION_CHANGE_CATEGORY";
       emitted_a_category |= true;
     }
 
index 78154bf13d58d22db7a86c6a7315d3cac00a1d19..a5c707d731a31b169d3af6d8fc05d07c84160737 100644 (file)
@@ -289,7 +289,7 @@ create_diff_context(const options& opts)
      | abigail::comparison::NON_VIRT_MEM_FUN_CHANGE_CATEGORY
      | abigail::comparison::STATIC_DATA_MEMBER_CHANGE_CATEGORY
      | abigail::comparison::HARMLESS_ENUM_CHANGE_CATEGORY
-     | abigail::comparison::HARMLESS_SYMBOL_ALIAS_CHANGE_CATEORY);
+     | abigail::comparison::HARMLESS_SYMBOL_ALIAS_CHANGE_CATEGORY);
 
   // Load suppression specifications, if there are any.
   suppressions_type supprs;
This page took 0.048809 seconds and 5 git commands to generate.