diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 | 
| commit | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (patch) | |
| tree | 4adf86a776049cbf7f69a1929c4babcbbef925eb /lldb/source/Symbol/CompilerDeclContext.cpp | |
| parent | 7cc9cf2bf09f069cb2dd947ead05d0b54301fb71 (diff) | |
Notes
Diffstat (limited to 'lldb/source/Symbol/CompilerDeclContext.cpp')
| -rw-r--r-- | lldb/source/Symbol/CompilerDeclContext.cpp | 23 | 
1 files changed, 4 insertions, 19 deletions
| diff --git a/lldb/source/Symbol/CompilerDeclContext.cpp b/lldb/source/Symbol/CompilerDeclContext.cpp index a6f046c4eb22..581e0872a6a7 100644 --- a/lldb/source/Symbol/CompilerDeclContext.cpp +++ b/lldb/source/Symbol/CompilerDeclContext.cpp @@ -19,33 +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>(); -} - -bool CompilerDeclContext::IsClang() const { -  return IsValid() && m_type_system->getKind() == TypeSystem::eKindClang; +  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(); -} - -bool CompilerDeclContext::IsStructUnionOrClass() const { -  if (IsValid()) -    return m_type_system->DeclContextIsStructUnionOrClass(m_opaque_decl_ctx); -  else -    return false; +  return ConstString();  }  bool CompilerDeclContext::IsClassMethod(lldb::LanguageType *language_ptr, @@ -55,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 { | 
