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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user