LLDB mainline
ScriptedStringSummaryInterface.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_INTERPRETER_INTERFACES_SCRIPTEDSTRINGSUMMARYINTERFACE_H
10#define LLDB_INTERPRETER_INTERFACES_SCRIPTEDSTRINGSUMMARYINTERFACE_H
11
12#include "ScriptedInterface.h"
13#include "lldb/lldb-private.h"
14
15namespace lldb_private {
17public:
18 virtual llvm::Expected<StructuredData::GenericSP>
19 CreatePluginObject(llvm::StringRef class_name) = 0;
20
21 virtual llvm::Expected<std::string>
22 GetSummary(ValueObject &valobj, const TypeSummaryOptions &options) {
23 return llvm::createStringError("not implemented");
24 }
25};
26} // namespace lldb_private
27
28#endif // LLDB_INTERPRETER_INTERFACES_SCRIPTEDSTRINGSUMMARYINTERFACE_H
virtual llvm::Expected< StructuredData::GenericSP > CreatePluginObject(llvm::StringRef class_name)=0
virtual llvm::Expected< std::string > GetSummary(ValueObject &valobj, const TypeSummaryOptions &options)
A class that represents a running process on the host machine.