diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-12-23 11:49:25 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-12-23 11:49:35 +0100 |
commit | 76d294cb8744b8b15a72d5adb2d435d2265ea9d7 (patch) | |
tree | c65944760d8af098a0b5a16fad7daf195ae78da4 /lldb/source/Symbol/CompilerDeclContext.cpp | |
parent | 73951a11c64b4e748bbd1291d5021aef6aa400a5 (diff) | |
download | bcm5719-llvm-76d294cb8744b8b15a72d5adb2d435d2265ea9d7.tar.gz bcm5719-llvm-76d294cb8744b8b15a72d5adb2d435d2265ea9d7.zip |
[lldb][NFC] Delete all 'else return ...' in CompilerDeclContext.cpp
Diffstat (limited to 'lldb/source/Symbol/CompilerDeclContext.cpp')
-rw-r--r-- | lldb/source/Symbol/CompilerDeclContext.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lldb/source/Symbol/CompilerDeclContext.cpp b/lldb/source/Symbol/CompilerDeclContext.cpp index 25768fcb9f7..581e0872a6a 100644 --- a/lldb/source/Symbol/CompilerDeclContext.cpp +++ b/lldb/source/Symbol/CompilerDeclContext.cpp @@ -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 { |