ART: Refactor for bugprone-argument-comment
Handles runtime.
Bug: 116054210
Test: WITH_TIDY=1 mmma art
Change-Id: Ibc0d5086809d647f0ce4df5452eb84442d27ecf0
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc
index ab7182a..27ac90b 100644
--- a/runtime/class_linker_test.cc
+++ b/runtime/class_linker_test.cc
@@ -1034,8 +1034,8 @@
// Force initialization to turn the class erroneous.
bool initialized = class_linker_->EnsureInitialized(soa.Self(),
klass,
- /* can_init_fields */ true,
- /* can_init_parents */ true);
+ /* can_init_fields= */ true,
+ /* can_init_parents= */ true);
EXPECT_FALSE(initialized);
EXPECT_TRUE(soa.Self()->IsExceptionPending());
soa.Self()->ClearException();
@@ -1320,15 +1320,15 @@
ObjPtr<mirror::Class> uninit = ResolveVerifyAndClinit(type_idx,
clinit,
soa.Self(),
- /* can_run_clinit */ true,
- /* verify_access */ false);
+ /* can_run_clinit= */ true,
+ /* verify_access= */ false);
EXPECT_TRUE(uninit != nullptr);
EXPECT_FALSE(uninit->IsInitialized());
ObjPtr<mirror::Class> init = ResolveVerifyAndClinit(type_idx,
getS0,
soa.Self(),
- /* can_run_clinit */ true,
- /* verify_access */ false);
+ /* can_run_clinit= */ true,
+ /* verify_access= */ false);
EXPECT_TRUE(init != nullptr);
EXPECT_TRUE(init->IsInitialized());
}
@@ -1530,7 +1530,7 @@
{
WriterMutexLock mu(soa.Self(), *Locks::dex_lock_);
// Check that inserting with a UTF16 name works.
- class_linker->RegisterDexFileLocked(*dex_file, dex_cache.Get(), /* class_loader */ nullptr);
+ class_linker->RegisterDexFileLocked(*dex_file, dex_cache.Get(), /* class_loader= */ nullptr);
}
}
@@ -1699,14 +1699,14 @@
jobject class_loader_a = LoadDexInPathClassLoader("ForClassLoaderA", nullptr);
VerifyClassResolution("LDefinedInA;", class_loader_a, class_loader_a);
VerifyClassResolution("Ljava/lang/String;", class_loader_a, nullptr);
- VerifyClassResolution("LDefinedInB;", class_loader_a, nullptr, /*should_find*/ false);
+ VerifyClassResolution("LDefinedInB;", class_loader_a, nullptr, /*should_find=*/ false);
}
TEST_F(ClassLinkerClassLoaderTest, CreateDelegateLastClassLoader) {
jobject class_loader_a = LoadDexInDelegateLastClassLoader("ForClassLoaderA", nullptr);
VerifyClassResolution("LDefinedInA;", class_loader_a, class_loader_a);
VerifyClassResolution("Ljava/lang/String;", class_loader_a, nullptr);
- VerifyClassResolution("LDefinedInB;", class_loader_a, nullptr, /*should_find*/ false);
+ VerifyClassResolution("LDefinedInB;", class_loader_a, nullptr, /*should_find=*/ false);
}
TEST_F(ClassLinkerClassLoaderTest, CreateClassLoaderChain) {
@@ -1753,7 +1753,7 @@
VerifyClassResolution("LDefinedInAC;", class_loader_d, class_loader_a);
// Sanity check that we don't find an undefined class.
- VerifyClassResolution("LNotDefined;", class_loader_d, nullptr, /*should_find*/ false);
+ VerifyClassResolution("LNotDefined;", class_loader_d, nullptr, /*should_find=*/ false);
}
} // namespace art