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 -5
View File
@@ -11,7 +11,6 @@
using llvm::cast;
using llvm::dyn_cast;
using llvm::isa;
namespace Carbon {
@@ -251,10 +250,7 @@ auto ImplScope::VisitEqualValues(
return false;
}
}
if (parent_scope_ && !(*parent_scope_)->VisitEqualValues(value, visitor)) {
return false;
}
return true;
return !parent_scope_ || (*parent_scope_)->VisitEqualValues(value, visitor);
}
auto ImplScope::TryResolveInterface(Nonnull<const InterfaceType*> iface_type,