[lldb][NFC] Delete all 'else return ...' in CompilerDeclContext.cpp

This commit is contained in:
Raphael Isemann 2019-12-23 11:49:25 +01:00
parent 73951a11c6
commit 76d294cb87
1 changed files with 4 additions and 8 deletions

View File

@ -19,22 +19,19 @@ CompilerDeclContext::FindDeclByName(ConstString name,
if (IsValid())
return m_type_system->DeclContextFindDeclByName(m_opaque_decl_ctx, name,
ignore_using_decls);
else
return std::vector<CompilerDecl>();
return std::vector<CompilerDecl>();
}
ConstString CompilerDeclContext::GetName() const {
if (IsValid())
return m_type_system->DeclContextGetName(m_opaque_decl_ctx);
else
return ConstString();
return ConstString();
}
ConstString CompilerDeclContext::GetScopeQualifiedName() const {
if (IsValid())
return m_type_system->DeclContextGetScopeQualifiedName(m_opaque_decl_ctx);
else
return ConstString();
return ConstString();
}
bool CompilerDeclContext::IsClassMethod(lldb::LanguageType *language_ptr,
@ -44,8 +41,7 @@ bool CompilerDeclContext::IsClassMethod(lldb::LanguageType *language_ptr,
return m_type_system->DeclContextIsClassMethod(
m_opaque_decl_ctx, language_ptr, is_instance_method_ptr,
language_object_name_ptr);
else
return false;
return false;
}
bool CompilerDeclContext::IsContainedInLookup(CompilerDeclContext other) const {