Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lldb/include/lldb/Symbol/CompilerDeclContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ class CompilerDeclContext {

ConstString GetScopeQualifiedName() const;

CompilerDecl GetDecl() const;

private:
TypeSystem *m_type_system = nullptr;
void *m_opaque_decl_ctx = nullptr;
Expand Down
4 changes: 4 additions & 0 deletions lldb/include/lldb/Symbol/TypeSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ class TypeSystem : public PluginInterface,

virtual lldb::LanguageType DeclContextGetLanguage(void *opaque_decl_ctx) = 0;

virtual CompilerDecl DeclContextGetDecl(void *opaque_decl_ctx) {
return CompilerDecl();
}

/// Returns the direct parent context of specified type
virtual CompilerDeclContext
GetCompilerDeclContextForType(const CompilerType &type);
Expand Down
Loading