LLDB  mainline
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
lldb_private::DeclVendor Class Referenceabstract

#include <DeclVendor.h>

Inheritance diagram for lldb_private::DeclVendor:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::DeclVendor:
Collaboration graph
[legend]

Public Types

enum  DeclVendorKind { eClangDeclVendor, eClangModuleDeclVendor, eAppleObjCDeclVendor, eLastClangDeclVendor }
 

Public Member Functions

 DeclVendor (DeclVendorKind kind)
 
virtual ~DeclVendor ()
 
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. More...
 
std::vector< CompilerTypeFindTypes (ConstString name, uint32_t max_matches)
 Look up the types that the DeclVendor currently knows about matching a given name. More...
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (DeclVendor)
 

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()

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

Definition at line 29 of file DeclVendor.h.

◆ ~DeclVendor()

virtual lldb_private::DeclVendor::~DeclVendor ( )
inlinevirtual

Definition at line 31 of file DeclVendor.h.

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

lldb_private::DeclVendor::DISALLOW_COPY_AND_ASSIGN ( DeclVendor  )
private

Referenced by GetKind().

◆ 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.

Referenced by GetKind().

◆ 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.

Referenced by lldb_private::AppleObjCTypeEncodingParser::BuildObjCObjectPointerType(), and GetKind().

◆ GetKind()

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

Member Data Documentation

◆ m_kind

const DeclVendorKind lldb_private::DeclVendor::m_kind
private

Definition at line 72 of file DeclVendor.h.

Referenced by GetKind().


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