LLDB  mainline
Classes | Public Member Functions | Static Public Member Functions | List of all members
lldb_private::ObjCLanguage Class Reference

#include <ObjCLanguage.h>

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

Classes

class  MethodName
 

Public Member Functions

 ObjCLanguage ()=default
 
 ~ObjCLanguage () override=default
 
lldb::LanguageType GetLanguageType () const override
 
lldb::TypeCategoryImplSP GetFormatters () override
 
std::vector< ConstStringGetPossibleFormattersMatches (ValueObject &valobj, lldb::DynamicValueType use_dynamic) override
 
std::unique_ptr< TypeScavengerGetTypeScavenger () override
 
bool GetFormatterPrefixSuffix (ValueObject &valobj, ConstString type_hint, std::string &prefix, std::string &suffix) override
 
bool IsNilReference (ValueObject &valobj) override
 
bool IsSourceFile (llvm::StringRef file_path) const override
 
const HighlighterGetHighlighter () const override
 
ConstString GetPluginName () override
 
uint32_t GetPluginVersion () override
 
- Public Member Functions inherited from lldb_private::Language
 ~Language () override
 
virtual bool IsTopLevelFunction (Function &function)
 
virtual HardcodedFormatters::HardcodedFormatFinder GetHardcodedFormats ()
 
virtual HardcodedFormatters::HardcodedSummaryFinder GetHardcodedSummaries ()
 
virtual HardcodedFormatters::HardcodedSyntheticFinder GetHardcodedSynthetics ()
 
virtual HardcodedFormatters::HardcodedValidatorFinder GetHardcodedValidators ()
 
virtual lldb_private::formatters::StringPrinter::EscapingHelper GetStringPrinterEscapingHelper (lldb_private::formatters::StringPrinter::GetPrintableElementType)
 
virtual const char * GetLanguageSpecificTypeLookupHelp ()
 
virtual DumpValueObjectOptions::DeclPrintingHelper GetDeclPrintingHelper ()
 
virtual LazyBool IsLogicalTrue (ValueObject &valobj, Status &error)
 
virtual bool IsUninitializedReference (ValueObject &valobj)
 
virtual bool GetFunctionDisplayName (const SymbolContext *sc, const ExecutionContext *exe_ctx, FunctionNameRepresentation representation, Stream &s)
 
virtual void GetExceptionResolverDescription (bool catch_on, bool throw_on, Stream &s)
 
- Public Member Functions inherited from lldb_private::PluginInterface
virtual ~PluginInterface ()
 

Static Public Member Functions

static void Initialize ()
 
static void Terminate ()
 
static lldb_private::LanguageCreateInstance (lldb::LanguageType language)
 
static lldb_private::ConstString GetPluginNameStatic ()
 
static bool IsPossibleObjCMethodName (const char *name)
 
static bool IsPossibleObjCSelector (const char *name)
 
- Static Public Member Functions inherited from lldb_private::Language
static LanguageFindPlugin (lldb::LanguageType language)
 
static LanguageFindPlugin (llvm::StringRef file_path)
 Returns the Language associated with the given file path or a nullptr if there is no known language. More...
 
static LanguageFindPlugin (lldb::LanguageType language, llvm::StringRef file_path)
 
static void ForEach (std::function< bool(Language *)> callback)
 
static void GetDefaultExceptionResolverDescription (bool catch_on, bool throw_on, Stream &s)
 
static lldb::LanguageType GetLanguageTypeFromString (const char *string)=delete
 
static lldb::LanguageType GetLanguageTypeFromString (llvm::StringRef string)
 
static const char * GetNameForLanguageType (lldb::LanguageType language)
 
static void PrintAllLanguages (Stream &s, const char *prefix, const char *suffix)
 
static void ForAllLanguages (std::function< bool(lldb::LanguageType)> callback)
 
static bool LanguageIsCPlusPlus (lldb::LanguageType language)
 
static bool LanguageIsObjC (lldb::LanguageType language)
 
static bool LanguageIsC (lldb::LanguageType language)
 
static bool LanguageIsPascal (lldb::LanguageType language)
 
static lldb::LanguageType GetPrimaryLanguage (lldb::LanguageType language)
 
static void GetLanguagesSupportingTypeSystems (std::set< lldb::LanguageType > &languages, std::set< lldb::LanguageType > &languages_for_expressions)
 
static void GetLanguagesSupportingREPLs (std::set< lldb::LanguageType > &languages)
 

Additional Inherited Members

- Public Types inherited from lldb_private::Language
enum  FunctionNameRepresentation { FunctionNameRepresentation::eName, FunctionNameRepresentation::eNameWithArgs, FunctionNameRepresentation::eNameWithNoArgs }
 
- Protected Member Functions inherited from lldb_private::Language
 Language ()
 

Detailed Description

Definition at line 22 of file ObjCLanguage.h.

Constructor & Destructor Documentation

◆ ObjCLanguage()

lldb_private::ObjCLanguage::ObjCLanguage ( )
default

◆ ~ObjCLanguage()

lldb_private::ObjCLanguage::~ObjCLanguage ( )
overridedefault

Member Function Documentation

◆ CreateInstance()

Language * ObjCLanguage::CreateInstance ( lldb::LanguageType  language)
static

Definition at line 61 of file ObjCLanguage.cpp.

References lldb::eLanguageTypeObjC.

Referenced by GetHighlighter().

◆ GetFormatterPrefixSuffix()

bool ObjCLanguage::GetFormatterPrefixSuffix ( ValueObject valobj,
ConstString  type_hint,
std::string &  prefix,
std::string &  suffix 
)
overridevirtual

Reimplemented from lldb_private::Language.

Definition at line 1013 of file ObjCLanguage.cpp.

References lldb_private::ConstString::IsEmpty().

Referenced by GetLanguageType().

◆ GetFormatters()

lldb::TypeCategoryImplSP ObjCLanguage::GetFormatters ( )
overridevirtual

Reimplemented from lldb_private::Language.

Definition at line 856 of file ObjCLanguage.cpp.

References LoadCoreMediaFormatters(), and LoadObjCFormatters().

Referenced by GetLanguageType().

◆ GetHighlighter()

const Highlighter* lldb_private::ObjCLanguage::GetHighlighter ( ) const
inlineoverridevirtual

Reimplemented from lldb_private::Language.

Definition at line 124 of file ObjCLanguage.h.

References CreateInstance(), GetPluginNameStatic(), Initialize(), and Terminate().

◆ GetLanguageType()

lldb::LanguageType lldb_private::ObjCLanguage::GetLanguageType ( ) const
inlineoverridevirtual

◆ GetPluginName()

lldb_private::ConstString ObjCLanguage::GetPluginName ( )
overridevirtual

Implements lldb_private::PluginInterface.

Definition at line 53 of file ObjCLanguage.cpp.

Referenced by IsPossibleObjCSelector().

◆ GetPluginNameStatic()

lldb_private::ConstString ObjCLanguage::GetPluginNameStatic ( )
static

Definition at line 46 of file ObjCLanguage.cpp.

Referenced by GetHighlighter().

◆ GetPluginVersion()

uint32_t ObjCLanguage::GetPluginVersion ( )
overridevirtual

Implements lldb_private::PluginInterface.

Definition at line 57 of file ObjCLanguage.cpp.

Referenced by IsPossibleObjCSelector().

◆ GetPossibleFormattersMatches()

std::vector< ConstString > ObjCLanguage::GetPossibleFormattersMatches ( ValueObject valobj,
lldb::DynamicValueType  use_dynamic 
)
overridevirtual

◆ GetTypeScavenger()

std::unique_ptr< Language::TypeScavenger > ObjCLanguage::GetTypeScavenger ( )
overridevirtual

◆ Initialize()

void ObjCLanguage::Initialize ( )
static

◆ IsNilReference()

bool ObjCLanguage::IsNilReference ( ValueObject valobj)
overridevirtual

◆ IsPossibleObjCMethodName()

static bool lldb_private::ObjCLanguage::IsPossibleObjCMethodName ( const char *  name)
inlinestatic

◆ IsPossibleObjCSelector()

static bool lldb_private::ObjCLanguage::IsPossibleObjCSelector ( const char *  name)
inlinestatic

Definition at line 143 of file ObjCLanguage.h.

References GetPluginName(), and GetPluginVersion().

Referenced by lldb_private::Module::FindCompileUnits().

◆ IsSourceFile()

bool ObjCLanguage::IsSourceFile ( llvm::StringRef  file_path) const
overridevirtual

Implements lldb_private::Language.

Definition at line 1098 of file ObjCLanguage.cpp.

Referenced by GetLanguageType().

◆ Terminate()

void ObjCLanguage::Terminate ( )
static

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