LLDB mainline
lldb_private::DeclVendor Class Referenceabstract

#include <DeclVendor.h>

Inheritance diagram for lldb_private::DeclVendor:
[legend]

Public Types

enum  DeclVendorKind { eClangDeclVendor , eClangModuleDeclVendor , eAppleObjCDeclVendor , eLastClangDeclVendor }

Public Member Functions

 DeclVendor (DeclVendorKind kind)
virtual ~DeclVendor ()=default
DeclVendorKind GetKind () const
virtual uint32_t FindDecls (ConstString name, bool append, uint32_t max_matches, std::vector< CompilerDecl > &decls)=0
 Look up the set of Decls that the DeclVendor currently knows about matching a given name.
std::vector< CompilerTypeFindTypes (ConstString name, uint32_t max_matches)
 Look up the types that the DeclVendor currently knows about matching a given name.

Private Member Functions

 DeclVendor (const DeclVendor &)=delete
const DeclVendoroperator= (const DeclVendor &)=delete

Private Attributes

const DeclVendorKind m_kind

Detailed Description

Definition at line 20 of file DeclVendor.h.

Member Enumeration Documentation

◆ DeclVendorKind

Enumerator
eClangDeclVendor 
eClangModuleDeclVendor 
eAppleObjCDeclVendor 
eLastClangDeclVendor 

Definition at line 22 of file DeclVendor.h.

Constructor & Destructor Documentation

◆ DeclVendor() [1/2]

lldb_private::DeclVendor::DeclVendor ( DeclVendorKind kind)
inline

◆ ~DeclVendor()

virtual lldb_private::DeclVendor::~DeclVendor ( )
virtualdefault

◆ DeclVendor() [2/2]

lldb_private::DeclVendor::DeclVendor ( const DeclVendor & )
privatedelete

References DeclVendor().

Member Function Documentation

◆ FindDecls()

virtual uint32_t lldb_private::DeclVendor::FindDecls ( ConstString name,
bool append,
uint32_t max_matches,
std::vector< CompilerDecl > & decls )
pure virtual

Look up the set of Decls that the DeclVendor currently knows about matching a given name.

Parameters
[in]nameThe name to look for.
[in]appendIf true, FindDecls will clear "decls" when it starts.
[in]max_matchesThe maximum number of Decls to return. UINT32_MAX means "as many as possible."
Returns
The number of Decls added to decls; will not exceed max_matches.

Implemented in lldb_private::AppleObjCDeclVendor, and lldb_private::ClangDeclVendor.

Referenced by FindTypes(), and lldb_private::ClangDeclVendor::~ClangDeclVendor().

◆ FindTypes()

std::vector< CompilerType > DeclVendor::FindTypes ( ConstString name,
uint32_t max_matches )

Look up the types that the DeclVendor currently knows about matching a given name.

Parameters
[in]nameThe name to look for.
[in]max_matches
Returns
The vector of CompilerTypes that was found.

Definition at line 18 of file DeclVendor.cpp.

References FindDecls().

Referenced by lldb_private::AppleObjCTypeEncodingParser::BuildObjCObjectPointerType().

◆ GetKind()

DeclVendorKind lldb_private::DeclVendor::GetKind ( ) const
inline

◆ operator=()

const DeclVendor & lldb_private::DeclVendor::operator= ( const DeclVendor & )
privatedelete

References DeclVendor().

Member Data Documentation

◆ m_kind

const DeclVendorKind lldb_private::DeclVendor::m_kind
private

Definition at line 73 of file DeclVendor.h.

Referenced by DeclVendor(), and GetKind().


The documentation for this class was generated from the following files: