mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user