LLDB mainline
|
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 |
A type-erased pair of llvm::dwarf::SourceLanguageName and version.
Definition at line 103 of file lldb-private-types.h.
|
default |
SourceLanguage::SourceLanguage | ( | lldb::LanguageType | language_type | ) |
Definition at line 545 of file Language.cpp.
|
inline |
Definition at line 106 of file lldb-private-types.h.
|
inline |
Definition at line 108 of file lldb-private-types.h.
lldb::LanguageType SourceLanguage::AsLanguageType | ( | ) | const |
Definition at line 554 of file Language.cpp.
References lldb::eLanguageTypeUnknown.
Referenced by lldb_private::ClangExpressionParser::ClangExpressionParser(), CommandObjectTypeLookup::CommandObjectTypeLookup(), lldb_private::CommandObjectDWIMPrint::DoExecute(), lldb_private::UserExpression::Evaluate(), lldb_private::UserExpression::Execute(), lldb_private::StackFrame::GetLanguageSpecificData(), lldb_private::Target::GetUserExpressionForLanguage(), lldb::SBFrame::GuessLanguage(), lldb_private::ClangUserExpression::Parse(), lldb_private::ClangUserExpression::SetupCppModuleImports(), and SetupLangOpts().
llvm::StringRef SourceLanguage::GetDescription | ( | ) | const |
Definition at line 561 of file Language.cpp.
References lldb_private::Language::GetNameForLanguageType().
Referenced by lldb_private::Target::GetUserExpressionForLanguage().
bool SourceLanguage::IsC | ( | ) | const |
Definition at line 568 of file Language.cpp.
bool SourceLanguage::IsCPlusPlus | ( | ) | const |
Definition at line 574 of file Language.cpp.
bool SourceLanguage::IsObjC | ( | ) | const |
Definition at line 570 of file Language.cpp.
|
inline |
Definition at line 111 of file lldb-private-types.h.
References name.
uint16_t lldb_private::SourceLanguage::name = 0 |
Definition at line 117 of file lldb-private-types.h.
Referenced by lldb_private::ClangUserExpression::ClangUserExpression(), lldb::SBFrame::EvaluateExpression(), and operator bool().
uint32_t lldb_private::SourceLanguage::version = 0 |
Definition at line 118 of file lldb-private-types.h.
Referenced by lldb::SBFrame::EvaluateExpression().