clang-tidy cleanup (#2774)

running clang-tidy locally got a bunch of warning. 

I have ignored `bugprone-unchecked-optional-access` for now, because there are large number of occurrences.
This commit is contained in:
Manmeet Singh
2023-04-17 10:15:11 -07:00
committed by GitHub
parent 3cab211489
commit 951cac9607
4 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ class CloneContext::CloneValueTransform
// A FunctionType may or may not own its bindings.
auto operator()(Nonnull<const FunctionType*> fn_type)
-> Nonnull<const FunctionType*> {
for (auto* binding : fn_type->deduced_bindings()) {
for (const auto* binding : fn_type->deduced_bindings()) {
context_->MaybeCloneBase(binding);
}
for (auto [index, binding] : fn_type->generic_parameters()) {