20 const auto suffixes = {
".h",
".mm"};
21 for (
auto suffix : suffixes) {
22 if (file_path.ends_with_insensitive(suffix))
60 return llvm::StringSwitch<std::optional<bool>>(str)
61 .Cases({
"true",
"YES"}, {
true})
62 .Cases({
"false",
"NO"}, {
false})
#define LLDB_PLUGIN_DEFINE(PluginName)
static bool LanguageIsC(lldb::LanguageType language)
virtual bool IsCategoryApplicable(lldb::LanguageType category_language, lldb::LanguageType valobj_language) const
Returns whether the formatters in a category for category_language, one of the languages of this plug...
bool IsSourceFile(llvm::StringRef file_path) const override
static llvm::StringRef GetPluginNameStatic()
ObjCPlusPlusLanguage()=default
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...
virtual std::optional< bool > GetBooleanFromString(llvm::StringRef str) const override
static lldb_private::Language * CreateInstance(lldb::LanguageType language)
static bool RegisterPlugin(llvm::StringRef name, llvm::StringRef description, ABICreateInstance create_callback)
static bool UnregisterPlugin(ABICreateInstance create_callback)
A class that represents a running process on the host machine.
LanguageType
Programming language type.
@ eLanguageTypeObjC_plus_plus
Objective-C++.
@ eLanguageTypeObjC
Objective-C.
@ eLanguageTypeC_plus_plus
ISO C++:1998.