9#ifndef LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_OBJCLANGUAGE_H
10#define LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_OBJCLANGUAGE_H
36 static std::optional<const ObjCMethodName>
Create(llvm::StringRef name,
139 std::vector<Language::MethodNameVariant>
142 std::pair<lldb::FunctionNameType, std::optional<ConstString>>
152 std::vector<FormattersMatchCandidate>
156 std::vector<lldb::LanguageType>
164 std::pair<llvm::StringRef, llvm::StringRef>
171 bool IsSourceFile(llvm::StringRef file_path)
const override;
188 if (strchr(name,
':') ==
nullptr)
190 else if (name[strlen(name) - 1] ==
':')
198 virtual std::optional<bool>
A uniqued constant string class.
A class that handles mangled names.
llvm::StringRef GetClassNameWithCategory() const
Returns a reference to the class name with the category.
llvm::StringRef GetSelector() const
Returns a reference to the selector name.
static std::optional< const ObjCMethodName > Create(llvm::StringRef name, bool strict)
The static factory method for creating a ObjCMethodName.
llvm::StringRef GetCategory() const
Returns a reference to the category name.
bool IsInstanceMethod() const
Determines if this method is an instance method.
bool IsClassMethod() const
Determines if this method is a class method.
ObjCMethodName(llvm::StringRef name, Type type)
const std::string & GetFullName() const
Returns the full name of the method.
llvm::StringRef GetClassName() const
Returns a reference to the class name.
std::string GetFullNameWithoutCategory() const
Creates a variation of this method without the category.
std::vector< lldb::LanguageType > GetFormatterLanguages(lldb::LanguageType language) const override
Returns the languages whose formatters apply to values of language, in the order in which to consult ...
llvm::StringRef GetPluginName() override
std::pair< llvm::StringRef, llvm::StringRef > GetFormatterPrefixSuffix(llvm::StringRef type_hint) override
An individual data formatter may apply to several types and cross language boundaries.
static bool IsPossibleObjCSelector(const char *name)
static lldb_private::Language * CreateInstance(lldb::LanguageType language)
std::unique_ptr< TypeScavenger > GetTypeScavenger() override
lldb::TypeCategoryImplSP GetFormatters() override
std::pair< lldb::FunctionNameType, std::optional< ConstString > > GetFunctionNameInfo(ConstString name) const override
bool IsCategoryApplicable(lldb::LanguageType category_language, lldb::LanguageType valobj_language) const override
Returns whether the formatters in a category for category_language, one of the languages of this plug...
bool SymbolNameFitsToLanguage(const Mangled &mangled) const override
Returns true iff the given symbol name is compatible with the mangling scheme of this language.
bool IsSourceFile(llvm::StringRef file_path) const override
llvm::StringRef GetNilReferenceSummaryString() override
Returns the summary string for ValueObjects for which IsNilReference() is true.
static bool IsPossibleObjCMethodName(llvm::StringRef name)
~ObjCLanguage() override=default
lldb::LanguageType GetLanguageType() const override
llvm::StringRef GetInstanceName() override
virtual std::optional< bool > GetBooleanFromString(llvm::StringRef str) const override
static llvm::StringRef GetPluginNameStatic()
std::vector< FormattersMatchCandidate > GetPossibleFormattersMatches(ValueObject &valobj, lldb::DynamicValueType use_dynamic) override
HardcodedFormatters::HardcodedSyntheticFinder GetHardcodedSynthetics() override
bool IsNilReference(ValueObject &valobj) override
std::vector< Language::MethodNameVariant > GetMethodNameVariants(llvm::StringRef method_name) const override
llvm::StringRef GetUserEntryPointName() const override
bool SupportsExceptionBreakpointsOnThrow() const override
Returns true if this Language supports exception breakpoints on throw via a corresponding LanguageRun...
A class that represents a running process on the host machine.
LanguageType
Programming language type.
@ eLanguageTypeObjC
Objective-C.
std::shared_ptr< lldb_private::TypeCategoryImpl > TypeCategoryImplSP