Running clang-format on alloy.
All except x64_sequences, which needs work.
This commit is contained in:
@@ -9,14 +9,15 @@
|
||||
|
||||
#include <alloy/runtime/symbol_info.h>
|
||||
|
||||
using namespace alloy;
|
||||
using namespace alloy::runtime;
|
||||
namespace alloy {
|
||||
namespace runtime {
|
||||
|
||||
|
||||
SymbolInfo::SymbolInfo(Type type, Module* module, uint64_t address) :
|
||||
type_(type), status_(STATUS_DEFINING),
|
||||
module_(module), address_(address), name_(0) {
|
||||
}
|
||||
SymbolInfo::SymbolInfo(Type type, Module* module, uint64_t address)
|
||||
: type_(type),
|
||||
status_(STATUS_DEFINING),
|
||||
module_(module),
|
||||
address_(address),
|
||||
name_(0) {}
|
||||
|
||||
SymbolInfo::~SymbolInfo() {
|
||||
if (name_) {
|
||||
@@ -31,14 +32,15 @@ void SymbolInfo::set_name(const char* name) {
|
||||
name_ = xestrdupa(name);
|
||||
}
|
||||
|
||||
FunctionInfo::FunctionInfo(Module* module, uint64_t address) :
|
||||
end_address_(0), behavior_(BEHAVIOR_DEFAULT), function_(0),
|
||||
SymbolInfo(SymbolInfo::TYPE_FUNCTION, module, address) {
|
||||
FunctionInfo::FunctionInfo(Module* module, uint64_t address)
|
||||
: end_address_(0),
|
||||
behavior_(BEHAVIOR_DEFAULT),
|
||||
function_(0),
|
||||
SymbolInfo(SymbolInfo::TYPE_FUNCTION, module, address) {
|
||||
xe_zero_struct(&extern_info_, sizeof(extern_info_));
|
||||
}
|
||||
|
||||
FunctionInfo::~FunctionInfo() {
|
||||
}
|
||||
FunctionInfo::~FunctionInfo() {}
|
||||
|
||||
void FunctionInfo::SetupExtern(ExternHandler handler, void* arg0, void* arg1) {
|
||||
behavior_ = BEHAVIOR_EXTERN;
|
||||
@@ -47,9 +49,10 @@ void FunctionInfo::SetupExtern(ExternHandler handler, void* arg0, void* arg1) {
|
||||
extern_info_.arg1 = arg1;
|
||||
}
|
||||
|
||||
VariableInfo::VariableInfo(Module* module, uint64_t address) :
|
||||
SymbolInfo(SymbolInfo::TYPE_VARIABLE, module, address) {
|
||||
}
|
||||
VariableInfo::VariableInfo(Module* module, uint64_t address)
|
||||
: SymbolInfo(SymbolInfo::TYPE_VARIABLE, module, address) {}
|
||||
|
||||
VariableInfo::~VariableInfo() {
|
||||
}
|
||||
VariableInfo::~VariableInfo() {}
|
||||
|
||||
} // namespace runtime
|
||||
} // namespace alloy
|
||||
|
||||
Reference in New Issue
Block a user