mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
[Reproducers] Add SBReproducer macros
This patch adds the SBReproducer macros needed to capture and reply the corresponding calls. This patch was generated by running the lldb-instr tool on the API source files. Differential revision: https://reviews.llvm.org/D57475 llvm-svn: 355459
This commit is contained in:
1 parent
bd4bf82a48
commit
baf5664f50
66 files changed
+8848
-989
No files matched your search
@@ -8,6 +8,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lldb/API/SBVariablesOptions.h"
|
||||
#include "SBReproducerPrivate.h"
|
||||
#include "lldb/API/SBTarget.h"
|
||||
#include "lldb/Target/Target.h"
|
||||
|
||||
@@ -80,76 +81,130 @@ private:
|
||||
};
|
||||
|
||||
SBVariablesOptions::SBVariablesOptions()
|
||||
: m_opaque_up(new VariablesOptionsImpl()) {}
|
||||
: m_opaque_up(new VariablesOptionsImpl()) {
|
||||
LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBVariablesOptions);
|
||||
}
|
||||
|
||||
SBVariablesOptions::SBVariablesOptions(const SBVariablesOptions &options)
|
||||
: m_opaque_up(new VariablesOptionsImpl(options.ref())) {}
|
||||
: m_opaque_up(new VariablesOptionsImpl(options.ref())) {
|
||||
LLDB_RECORD_CONSTRUCTOR(SBVariablesOptions,
|
||||
(const lldb::SBVariablesOptions &), options);
|
||||
}
|
||||
|
||||
SBVariablesOptions &SBVariablesOptions::
|
||||
operator=(const SBVariablesOptions &options) {
|
||||
LLDB_RECORD_METHOD(
|
||||
lldb::SBVariablesOptions &,
|
||||
SBVariablesOptions, operator=,(const lldb::SBVariablesOptions &),
|
||||
options);
|
||||
|
||||
m_opaque_up.reset(new VariablesOptionsImpl(options.ref()));
|
||||
return *this;
|
||||
}
|
||||
|
||||
SBVariablesOptions::~SBVariablesOptions() = default;
|
||||
|
||||
bool SBVariablesOptions::IsValid() const { return m_opaque_up != nullptr; }
|
||||
bool SBVariablesOptions::IsValid() const {
|
||||
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBVariablesOptions, IsValid);
|
||||
|
||||
return m_opaque_up != nullptr;
|
||||
}
|
||||
|
||||
bool SBVariablesOptions::GetIncludeArguments() const {
|
||||
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBVariablesOptions,
|
||||
GetIncludeArguments);
|
||||
|
||||
return m_opaque_up->GetIncludeArguments();
|
||||
}
|
||||
|
||||
void SBVariablesOptions::SetIncludeArguments(bool arguments) {
|
||||
LLDB_RECORD_METHOD(void, SBVariablesOptions, SetIncludeArguments, (bool),
|
||||
arguments);
|
||||
|
||||
m_opaque_up->SetIncludeArguments(arguments);
|
||||
}
|
||||
|
||||
bool SBVariablesOptions::GetIncludeRecognizedArguments(
|
||||
const lldb::SBTarget &target) const {
|
||||
LLDB_RECORD_METHOD_CONST(bool, SBVariablesOptions,
|
||||
GetIncludeRecognizedArguments,
|
||||
(const lldb::SBTarget &), target);
|
||||
|
||||
return m_opaque_up->GetIncludeRecognizedArguments(target.GetSP());
|
||||
}
|
||||
|
||||
void SBVariablesOptions::SetIncludeRecognizedArguments(bool arguments) {
|
||||
LLDB_RECORD_METHOD(void, SBVariablesOptions, SetIncludeRecognizedArguments,
|
||||
(bool), arguments);
|
||||
|
||||
m_opaque_up->SetIncludeRecognizedArguments(arguments);
|
||||
}
|
||||
|
||||
bool SBVariablesOptions::GetIncludeLocals() const {
|
||||
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBVariablesOptions, GetIncludeLocals);
|
||||
|
||||
return m_opaque_up->GetIncludeLocals();
|
||||
}
|
||||
|
||||
void SBVariablesOptions::SetIncludeLocals(bool locals) {
|
||||
LLDB_RECORD_METHOD(void, SBVariablesOptions, SetIncludeLocals, (bool),
|
||||
locals);
|
||||
|
||||
m_opaque_up->SetIncludeLocals(locals);
|
||||
}
|
||||
|
||||
bool SBVariablesOptions::GetIncludeStatics() const {
|
||||
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBVariablesOptions, GetIncludeStatics);
|
||||
|
||||
return m_opaque_up->GetIncludeStatics();
|
||||
}
|
||||
|
||||
void SBVariablesOptions::SetIncludeStatics(bool statics) {
|
||||
LLDB_RECORD_METHOD(void, SBVariablesOptions, SetIncludeStatics, (bool),
|
||||
statics);
|
||||
|
||||
m_opaque_up->SetIncludeStatics(statics);
|
||||
}
|
||||
|
||||
bool SBVariablesOptions::GetInScopeOnly() const {
|
||||
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBVariablesOptions, GetInScopeOnly);
|
||||
|
||||
return m_opaque_up->GetInScopeOnly();
|
||||
}
|
||||
|
||||
void SBVariablesOptions::SetInScopeOnly(bool in_scope_only) {
|
||||
LLDB_RECORD_METHOD(void, SBVariablesOptions, SetInScopeOnly, (bool),
|
||||
in_scope_only);
|
||||
|
||||
m_opaque_up->SetInScopeOnly(in_scope_only);
|
||||
}
|
||||
|
||||
bool SBVariablesOptions::GetIncludeRuntimeSupportValues() const {
|
||||
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBVariablesOptions,
|
||||
GetIncludeRuntimeSupportValues);
|
||||
|
||||
return m_opaque_up->GetIncludeRuntimeSupportValues();
|
||||
}
|
||||
|
||||
void SBVariablesOptions::SetIncludeRuntimeSupportValues(
|
||||
bool runtime_support_values) {
|
||||
LLDB_RECORD_METHOD(void, SBVariablesOptions, SetIncludeRuntimeSupportValues,
|
||||
(bool), runtime_support_values);
|
||||
|
||||
m_opaque_up->SetIncludeRuntimeSupportValues(runtime_support_values);
|
||||
}
|
||||
|
||||
lldb::DynamicValueType SBVariablesOptions::GetUseDynamic() const {
|
||||
LLDB_RECORD_METHOD_CONST_NO_ARGS(lldb::DynamicValueType, SBVariablesOptions,
|
||||
GetUseDynamic);
|
||||
|
||||
return m_opaque_up->GetUseDynamic();
|
||||
}
|
||||
|
||||
void SBVariablesOptions::SetUseDynamic(lldb::DynamicValueType dynamic) {
|
||||
LLDB_RECORD_METHOD(void, SBVariablesOptions, SetUseDynamic,
|
||||
(lldb::DynamicValueType), dynamic);
|
||||
|
||||
m_opaque_up->SetUseDynamic(dynamic);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user