diff mbox series

Fix some parameter name inconsistencies

Message ID 20200129153827.70710-1-maennich@google.com
State Committed
Headers show
Series Fix some parameter name inconsistencies | expand

Commit Message

Matthias Maennich via libabigail Jan. 1, 2020, midnight UTC
Clang-tidy flags those name inconsistencies and they are trivial to fix,
hence just do it. No functional change.

	* src/abg-comparison-priv.h
	(corpus_diff::priv::count_unreachable_types): use consistent
	parameter naming.
	* tools/abidiff.cc(main): Likewise.

Signed-off-by: Matthias Maennich <maennich@google.com>
---
 src/abg-comparison-priv.h | 12 ++++++------
 tools/abidiff.cc          |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/src/abg-comparison-priv.h b/src/abg-comparison-priv.h
index 14799468475d..ff50c793c88e 100644
--- a/src/abg-comparison-priv.h
+++ b/src/abg-comparison-priv.h
@@ -1097,12 +1097,12 @@  struct corpus_diff::priv
   void count_leaf_type_changes(size_t &num_type_changes,
 			       size_t &num_type_changes_filtered);
 
-  void count_unreachable_types(size_t &num_added_unreachable_types,
-			       size_t &num_removed_unreachable_types,
-			       size_t &num_changed_unreachable_types,
-			       size_t &num_filtered_added_unreachable_types,
-			       size_t &num_filtered_removed_unreachable_types,
-			       size_t &num_filtered_changed_unreachable_types);
+  void count_unreachable_types(size_t &num_added,
+			       size_t &num_removed,
+			       size_t &num_changed,
+			       size_t &num_filtered_added,
+			       size_t &num_filtered_removed,
+			       size_t &num_filtered_changed);
 
   const vector<diff_sptr>&
   changed_unreachable_types_sorted() const;
diff --git a/tools/abidiff.cc b/tools/abidiff.cc
index 1d02f65e7697..428141303d95 100644
--- a/tools/abidiff.cc
+++ b/tools/abidiff.cc
@@ -1083,7 +1083,7 @@  main(int argc, char* argv[])
 	    abigail::dwarf_reader::read_context_sptr ctxt =
 	      abigail::dwarf_reader::create_read_context
 	      (opts.file1, opts.prepared_di_root_paths1,
-	       env.get(), /*readalltypes=*/opts.show_all_types,
+	       env.get(), /*read_all_types=*/opts.show_all_types,
 	       opts.linux_kernel_mode);
 	    assert(ctxt);
 
@@ -1159,7 +1159,7 @@  main(int argc, char* argv[])
 	    abigail::dwarf_reader::read_context_sptr ctxt =
 	      abigail::dwarf_reader::create_read_context
 	      (opts.file2, opts.prepared_di_root_paths2,
-	       env.get(), /*readalltypes=*/opts.show_all_types,
+	       env.get(), /*read_all_types=*/opts.show_all_types,
 	       opts.linux_kernel_mode);
 	    assert(ctxt);
 	    abigail::dwarf_reader::set_show_stats(*ctxt, opts.show_stats);