File indexing completed on 2026-05-10 08:42:49
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLDB_INTERPRETER_SCRIPTEDINTERFACEUSAGES_H
0010 #define LLDB_INTERPRETER_SCRIPTEDINTERFACEUSAGES_H
0011
0012 #include "lldb/lldb-types.h"
0013
0014 #include "lldb/Utility/Stream.h"
0015 #include "llvm/ADT/StringRef.h"
0016
0017 namespace lldb_private {
0018 class ScriptedInterfaceUsages {
0019 public:
0020 ScriptedInterfaceUsages() = default;
0021 ScriptedInterfaceUsages(const std::vector<llvm::StringRef> ci_usages,
0022 const std::vector<llvm::StringRef> sbapi_usages)
0023 : m_command_interpreter_usages(ci_usages), m_sbapi_usages(sbapi_usages) {}
0024
0025 const std::vector<llvm::StringRef> &GetCommandInterpreterUsages() const {
0026 return m_command_interpreter_usages;
0027 }
0028
0029 const std::vector<llvm::StringRef> &GetSBAPIUsages() const {
0030 return m_sbapi_usages;
0031 }
0032
0033 enum class UsageKind { CommandInterpreter, API };
0034
0035 void Dump(Stream &s, UsageKind kind) const;
0036
0037 private:
0038 std::vector<llvm::StringRef> m_command_interpreter_usages;
0039 std::vector<llvm::StringRef> m_sbapi_usages;
0040 };
0041 }
0042
0043 #endif