Fix bugprone-argument-comment clang-tidy issues
Test: m tidy-art
Bug: 213953102
Change-Id: I5c703033db4fefd1cb3f1dd2dc95126930e28d53
diff --git a/runtime/class_loader_utils.h b/runtime/class_loader_utils.h
index 934c92b..c777370 100644
--- a/runtime/class_loader_utils.h
+++ b/runtime/class_loader_utils.h
@@ -177,7 +177,7 @@
VisitClassLoaderDexFiles<decltype(helper), void*>(soa,
class_loader,
helper,
- /* default= */ nullptr);
+ /* defaultReturn= */ nullptr);
}
} // namespace art
diff --git a/runtime/gc/collector/immune_spaces_test.cc b/runtime/gc/collector/immune_spaces_test.cc
index a0ea60d..3d27a93 100644
--- a/runtime/gc/collector/immune_spaces_test.cc
+++ b/runtime/gc/collector/immune_spaces_test.cc
@@ -46,7 +46,7 @@
MemMap&& oat_map)
: ImageSpace("FakeImageSpace",
/*image_location=*/"",
- /*profile_file=*/{},
+ /*profile_files=*/{},
std::move(map),
std::move(live_bitmap),
map.End()),
diff --git a/runtime/metrics/statsd.cc b/runtime/metrics/statsd.cc
index 560e7da..78c3622 100644
--- a/runtime/metrics/statsd.cc
+++ b/runtime/metrics/statsd.cc
@@ -250,8 +250,8 @@
EncodeCompileFilter(session_data_.compiler_filter),
EncodeCompilationReason(session_data_.compilation_reason),
current_timestamp_,
- /*thread_type=*/0, // TODO: collect and report thread type (0 means UNKNOWN, but that
- // constant is not present in all branches)
+ 0, // TODO: collect and report thread type (0 means UNKNOWN, but that
+ // constant is not present in all branches)
datum_id.value(),
static_cast<int64_t>(value),
statsd::ART_DATUM_REPORTED__DEX_METADATA_TYPE__ART_DEX_METADATA_TYPE_UNKNOWN,
diff --git a/runtime/oat_file.cc b/runtime/oat_file.cc
index 63778c7..30ca7b5 100644
--- a/runtime/oat_file.cc
+++ b/runtime/oat_file.cc
@@ -2252,7 +2252,7 @@
return OatFile::OatClass(oat_file_,
ClassStatus::kNotReady,
/* type= */ OatClassType::kNoneCompiled,
- /* bitmap_size= */ 0u,
+ /* num_methods= */ 0u,
/* bitmap_pointer= */ nullptr,
/* methods_pointer= */ nullptr);
}
diff --git a/runtime/oat_file.h b/runtime/oat_file.h
index c1b1acb..fdb4217 100644
--- a/runtime/oat_file.h
+++ b/runtime/oat_file.h
@@ -270,7 +270,7 @@
return OatClass(/* oat_file= */ nullptr,
ClassStatus::kErrorUnresolved,
OatClassType::kNoneCompiled,
- /* bitmap_size= */ 0,
+ /* num_methods= */ 0,
/* bitmap_pointer= */ nullptr,
/* methods_pointer= */ nullptr);
}
diff --git a/runtime/oat_file_assistant.cc b/runtime/oat_file_assistant.cc
index 1ba0cbb..cf0155f 100644
--- a/runtime/oat_file_assistant.cc
+++ b/runtime/oat_file_assistant.cc
@@ -750,7 +750,7 @@
// Only verify the primary boot image.
cached_is_boot_image_usable_ = gc::space::ImageSpace::VerifyBootImages(
ArrayRef<const std::string>(runtime_options_->image_locations)
- .SubArray(/*pos=*/0u, /*size=*/1u),
+ .SubArray(/*pos=*/0u, /*length=*/1u),
ArrayRef<const std::string>(runtime_options_->boot_class_path_locations),
ArrayRef<const std::string>(runtime_options_->boot_class_path),
runtime_options_->boot_class_path_fds != nullptr ?
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 1e58216..ba3af80 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -1129,8 +1129,8 @@
std::vector<std::string> jars = android::base::Split(system_server_classpath, ":");
app_info_.RegisterAppInfo("android",
jars,
- /*cur_profile_path=*/ "",
- /*ref_profile_path=*/ "",
+ /*profile_output_filename=*/ "",
+ /*ref_profile_filename=*/ "",
AppInfo::CodeType::kPrimaryApk);
}