20 const auto suffixes = {
".h",
".mm"};
21 for (
auto suffix : suffixes) {
22 if (file_path.ends_with_insensitive(suffix))
49 return llvm::StringSwitch<std::optional<bool>>(str)
50 .Cases(
"true",
"YES", {
true})
51 .Cases(
"false",
"NO", {
false})
#define LLDB_PLUGIN_DEFINE(PluginName)
static llvm::StringRef GetPluginNameStatic()
ObjCPlusPlusLanguage()=default
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++.