LLDB mainline
Public Member Functions | Public Attributes | List of all members
lldb_private::SourceLanguage Struct Reference

A type-erased pair of llvm::dwarf::SourceLanguageName and version. More...

#include <lldb-private-types.h>

Public Member Functions

 SourceLanguage ()=default
 
 SourceLanguage (lldb::LanguageType language_type)
 
 SourceLanguage (uint16_t name, uint32_t version)
 
 SourceLanguage (std::optional< std::pair< uint16_t, uint32_t > > name_vers)
 
 operator bool () const
 
lldb::LanguageType AsLanguageType () const
 
llvm::StringRef GetDescription () const
 
bool IsC () const
 
bool IsObjC () const
 
bool IsCPlusPlus () const
 

Public Attributes

uint16_t name = 0
 
uint32_t version = 0
 

Detailed Description

A type-erased pair of llvm::dwarf::SourceLanguageName and version.

Definition at line 103 of file lldb-private-types.h.

Constructor & Destructor Documentation

◆ SourceLanguage() [1/4]

lldb_private::SourceLanguage::SourceLanguage ( )
default

◆ SourceLanguage() [2/4]

SourceLanguage::SourceLanguage ( lldb::LanguageType  language_type)

Definition at line 537 of file Language.cpp.

◆ SourceLanguage() [3/4]

lldb_private::SourceLanguage::SourceLanguage ( uint16_t  name,
uint32_t  version 
)
inline

Definition at line 106 of file lldb-private-types.h.

◆ SourceLanguage() [4/4]

lldb_private::SourceLanguage::SourceLanguage ( std::optional< std::pair< uint16_t, uint32_t > >  name_vers)
inline

Definition at line 108 of file lldb-private-types.h.

Member Function Documentation

◆ AsLanguageType()

lldb::LanguageType SourceLanguage::AsLanguageType ( ) const

◆ GetDescription()

llvm::StringRef SourceLanguage::GetDescription ( ) const

◆ IsC()

bool SourceLanguage::IsC ( ) const

Definition at line 560 of file Language.cpp.

◆ IsCPlusPlus()

bool SourceLanguage::IsCPlusPlus ( ) const

Definition at line 566 of file Language.cpp.

◆ IsObjC()

bool SourceLanguage::IsObjC ( ) const

Definition at line 562 of file Language.cpp.

◆ operator bool()

lldb_private::SourceLanguage::operator bool ( ) const
inline

Definition at line 111 of file lldb-private-types.h.

References name.

Member Data Documentation

◆ name

uint16_t lldb_private::SourceLanguage::name = 0

◆ version

uint32_t lldb_private::SourceLanguage::version = 0

Definition at line 118 of file lldb-private-types.h.

Referenced by lldb::SBFrame::EvaluateExpression().


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