Go to the documentation of this file.
9 #ifndef LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_OBJCLANGUAGE_H
10 #define LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_OBJCLANGUAGE_H
63 bool SetName(
const char *name,
bool strict);
64 bool SetName(llvm::StringRef name,
bool strict);
104 std::vector<Language::MethodNameVariant>
111 std::vector<ConstString>
125 bool IsSourceFile(llvm::StringRef file_path)
const override;
141 bool starts_right = (name[0] ==
'+' || name[0] ==
'-') && name[1] ==
'[';
142 bool ends_right = (name[strlen(name) - 1] ==
']');
143 return (starts_right && ends_right);
150 if (strchr(name,
':') ==
nullptr)
152 else if (name[strlen(name) - 1] ==
':')
164 #endif // LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_OBJCLANGUAGE_H
MethodName(const char *name, bool strict)
lldb::LanguageType GetLanguageType() const override
ConstString m_class_category
LanguageType
Programming language type.
static bool IsPossibleObjCSelector(const char *name)
std::vector< ConstString > GetPossibleFormattersMatches(ValueObject &valobj, lldb::DynamicValueType use_dynamic) override
bool GetFormatterPrefixSuffix(ValueObject &valobj, ConstString type_hint, std::string &prefix, std::string &suffix) override
ConstString GetFullName() const
ConstString GetClassName()
~ObjCLanguage() override=default
ConstString GetFullNameWithoutCategory(bool empty_if_no_category)
Annotates source code with color attributes.
bool SetName(const char *name, bool strict)
std::unique_ptr< TypeScavenger > GetTypeScavenger() override
const Highlighter * GetHighlighter() const override
bool IsEmpty() const
Test for empty string.
bool IsSourceFile(llvm::StringRef file_path) const override
bool IsNilReference(ValueObject &valobj) override
static llvm::StringRef GetPluginNameStatic()
bool SymbolNameFitsToLanguage(Mangled mangled) const override
Returns true iff the given symbol name is compatible with the mangling scheme of this language.
ConstString GetCategory()
ClangHighlighter m_highlighter
ConstString GetClassNameWithCategory()
@ eLanguageTypeObjC
Objective-C.
string(SUBSTRING ${p} 10 -1 pStripped) if($
ConstString GetSelector()
static lldb_private::Language * CreateInstance(lldb::LanguageType language)
std::vector< Language::MethodNameVariant > GetMethodNameVariants(ConstString method_name) const override
MethodName(llvm::StringRef name, bool strict)
llvm::StringRef GetNilReferenceSummaryString() override
Returns the summary string for ValueObjects for which IsNilReference() is true.
A class that represents a running process on the host machine.
bool IsValid(bool strict) const
llvm::StringRef GetPluginName() override
static bool IsPossibleObjCMethodName(const char *name)
lldb::TypeCategoryImplSP GetFormatters() override