mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-09-19 11:09:05 +01:00
nix: update flake lock
This comes with some formatting changes due to a `clang-format` update.
This commit is contained in:
parent
8306c37508
commit
ed5fcfef9e
8
extern/shim-folly-config.h
vendored
8
extern/shim-folly-config.h
vendored
@ -18,7 +18,7 @@
|
|||||||
#define _FOLLY_CONFIG_H 1
|
#define _FOLLY_CONFIG_H 1
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <TargetConditionals.h> // @manual
|
#include <TargetConditionals.h> // @manual
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
#else
|
#else
|
||||||
#define FOLLY_MOBILE 0
|
#define FOLLY_MOBILE 0
|
||||||
#endif
|
#endif
|
||||||
#endif // FOLLY_MOBILE
|
#endif // FOLLY_MOBILE
|
||||||
|
|
||||||
/* define if the Boost library is available */
|
/* define if the Boost library is available */
|
||||||
#ifndef FOLLY_HAVE_BOOST
|
#ifndef FOLLY_HAVE_BOOST
|
||||||
@ -387,13 +387,13 @@
|
|||||||
#else
|
#else
|
||||||
#define FOLLY_LIBRARY_SANITIZE_ADDRESS 0
|
#define FOLLY_LIBRARY_SANITIZE_ADDRESS 0
|
||||||
#endif
|
#endif
|
||||||
#else // defined(__has_feature)
|
#else // defined(__has_feature)
|
||||||
#if __SANITIZE_ADDRESS__
|
#if __SANITIZE_ADDRESS__
|
||||||
#define FOLLY_LIBRARY_SANITIZE_ADDRESS 1
|
#define FOLLY_LIBRARY_SANITIZE_ADDRESS 1
|
||||||
#else
|
#else
|
||||||
#define FOLLY_LIBRARY_SANITIZE_ADDRESS 0
|
#define FOLLY_LIBRARY_SANITIZE_ADDRESS 0
|
||||||
#endif
|
#endif
|
||||||
#endif // defined(__has_feature)
|
#endif // defined(__has_feature)
|
||||||
|
|
||||||
// We depend on JEMalloc headers in fbcode, so use them (note that when using
|
// We depend on JEMalloc headers in fbcode, so use them (note that when using
|
||||||
// sanitizers, `#ifdef` gates in the code will not use JEMalloc headers,
|
// sanitizers, `#ifdef` gates in the code will not use JEMalloc headers,
|
||||||
|
18
flake.lock
18
flake.lock
@ -5,11 +5,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694529238,
|
"lastModified": 1710146030,
|
||||||
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -20,11 +20,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696375444,
|
"lastModified": 1723362943,
|
||||||
"narHash": "sha256-Sv0ICt/pXfpnFhTGYTsX6lUr1SljnuXWejYTI2ZqHa4=",
|
"narHash": "sha256-dFZRVSgmJkyM0bkPpaYRtG/kRMRTorUIDj8BxoOt1T4=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "81e8f48ebdecf07aab321182011b067aafc78896",
|
"rev": "a58bc8ad779655e790115244571758e8de055e3d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -63,11 +63,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1695822946,
|
"lastModified": 1723454642,
|
||||||
"narHash": "sha256-IQU3fYo0H+oGlqX5YrgZU3VRhbt2Oqe6KmslQKUO4II=",
|
"narHash": "sha256-S0Gvsenh0II7EAaoc9158ZB4vYyuycvMGKGxIbERNAM=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "720bd006d855b08e60664e4683ccddb7a9ff614a",
|
"rev": "349de7bc435bdff37785c2466f054ed1766173be",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
18
flake.nix
18
flake.nix
@ -10,8 +10,16 @@
|
|||||||
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
|
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, treefmt-nix, ... }@inputs:
|
outputs =
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
treefmt-nix,
|
||||||
|
...
|
||||||
|
}@inputs:
|
||||||
|
flake-utils.lib.eachDefaultSystem (
|
||||||
|
system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
treefmtEval = treefmt-nix.lib.evalModule pkgs (pkgs: {
|
treefmtEval = treefmt-nix.lib.evalModule pkgs (pkgs: {
|
||||||
@ -23,8 +31,10 @@
|
|||||||
programs.black.enable = true;
|
programs.black.enable = true;
|
||||||
programs.isort.enable = true;
|
programs.isort.enable = true;
|
||||||
});
|
});
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
formatter = treefmtEval.config.build.wrapper;
|
formatter = treefmtEval.config.build.wrapper;
|
||||||
checks.formatting = treefmtEval.config.build.check self;
|
checks.formatting = treefmtEval.config.build.check self;
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ func_iterator::func_iterator(drgn_program* prog) {
|
|||||||
iter.reset(ret, Deleter());
|
iter.reset(ret, Deleter());
|
||||||
}
|
}
|
||||||
|
|
||||||
func_iterator::func_iterator(program& prog) : func_iterator(prog.get()){};
|
func_iterator::func_iterator(program& prog) : func_iterator(prog.get()) {};
|
||||||
|
|
||||||
void func_iterator::Deleter::operator()(drgn_func_iterator* _iter) noexcept {
|
void func_iterator::Deleter::operator()(drgn_func_iterator* _iter) noexcept {
|
||||||
drgn_func_iterator_destroy(_iter);
|
drgn_func_iterator_destroy(_iter);
|
||||||
|
@ -41,7 +41,7 @@ class error : public std::exception {
|
|||||||
struct Deleter {
|
struct Deleter {
|
||||||
void operator()(drgn_error* err) noexcept;
|
void operator()(drgn_error* err) noexcept;
|
||||||
};
|
};
|
||||||
error(drgn_error* err) : ptr(err){};
|
error(drgn_error* err) : ptr(err) {};
|
||||||
|
|
||||||
operator bool() const {
|
operator bool() const {
|
||||||
return static_cast<bool>(ptr);
|
return static_cast<bool>(ptr);
|
||||||
@ -65,7 +65,7 @@ class program {
|
|||||||
};
|
};
|
||||||
|
|
||||||
program();
|
program();
|
||||||
program(drgn_program* prog) : ptr(prog){};
|
program(drgn_program* prog) : ptr(prog) {};
|
||||||
|
|
||||||
symbols find_all_symbols();
|
symbols find_all_symbols();
|
||||||
|
|
||||||
|
@ -83,8 +83,7 @@ IntrospectionResult::const_iterator::operator++() {
|
|||||||
|
|
||||||
for (const auto& [dy, handler] : ty.processors) {
|
for (const auto& [dy, handler] : ty.processors) {
|
||||||
auto parsed = exporters::ParsedData::parse(data_, dy);
|
auto parsed = exporters::ParsedData::parse(data_, dy);
|
||||||
handler(
|
handler(*next_, [this](auto i) { stack_.emplace(i); }, parsed);
|
||||||
*next_, [this](auto i) { stack_.emplace(i); }, parsed);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto new_name = genNameFromData(next_->data)) {
|
if (auto new_name = genNameFromData(next_->data)) {
|
||||||
|
@ -31,9 +31,9 @@ namespace oi::detail {
|
|||||||
|
|
||||||
class OIScanner : public yyFlexLexer {
|
class OIScanner : public yyFlexLexer {
|
||||||
public:
|
public:
|
||||||
OIScanner(std::istream* in) : yyFlexLexer(in){};
|
OIScanner(std::istream* in) : yyFlexLexer(in) {};
|
||||||
|
|
||||||
virtual ~OIScanner(){};
|
virtual ~OIScanner() {};
|
||||||
|
|
||||||
// get rid of override virtual function warning
|
// get rid of override virtual function warning
|
||||||
using FlexLexer::yylex;
|
using FlexLexer::yylex;
|
||||||
|
116
oi/Serialize.cpp
116
oi/Serialize.cpp
@ -57,11 +57,11 @@ using oarchive = boost::archive::text_oarchive;
|
|||||||
template <class Archive>
|
template <class Archive>
|
||||||
void serialize(Archive& ar, PaddingInfo& p, const unsigned int version) {
|
void serialize(Archive& ar, PaddingInfo& p, const unsigned int version) {
|
||||||
verify_version<PaddingInfo>(version);
|
verify_version<PaddingInfo>(version);
|
||||||
ar& p.structSize;
|
ar & p.structSize;
|
||||||
ar& p.paddingSize;
|
ar & p.paddingSize;
|
||||||
ar& p.definition;
|
ar & p.definition;
|
||||||
ar& p.instancesCnt;
|
ar & p.instancesCnt;
|
||||||
ar& p.savingSize;
|
ar & p.savingSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(PaddingInfo)
|
INSTANCIATE_SERIALIZE(PaddingInfo)
|
||||||
@ -71,9 +71,9 @@ void serialize(Archive& ar,
|
|||||||
struct drgn_location_description& location,
|
struct drgn_location_description& location,
|
||||||
const unsigned int version) {
|
const unsigned int version) {
|
||||||
verify_version<struct drgn_location_description>(version);
|
verify_version<struct drgn_location_description>(version);
|
||||||
ar& location.start;
|
ar & location.start;
|
||||||
ar& location.end;
|
ar & location.end;
|
||||||
ar& location.expr_size;
|
ar & location.expr_size;
|
||||||
if (Archive::is_loading::value) {
|
if (Archive::is_loading::value) {
|
||||||
// It is important to call `malloc` here instead of allocating with `new`
|
// It is important to call `malloc` here instead of allocating with `new`
|
||||||
// since these structs are usually allocated and deallocated directly by
|
// since these structs are usually allocated and deallocated directly by
|
||||||
@ -91,11 +91,11 @@ void serialize(Archive& ar,
|
|||||||
struct drgn_object_locator& locator,
|
struct drgn_object_locator& locator,
|
||||||
const unsigned int version) {
|
const unsigned int version) {
|
||||||
verify_version<struct drgn_object_locator>(version);
|
verify_version<struct drgn_object_locator>(version);
|
||||||
ar& locator.module_start;
|
ar & locator.module_start;
|
||||||
ar& locator.module_end;
|
ar & locator.module_end;
|
||||||
ar& locator.module_bias;
|
ar & locator.module_bias;
|
||||||
ar& locator.locations_size;
|
ar & locator.locations_size;
|
||||||
ar& locator.frame_base_locations_size;
|
ar & locator.frame_base_locations_size;
|
||||||
if (Archive::is_loading::value) {
|
if (Archive::is_loading::value) {
|
||||||
// It is important to call `malloc` here instead of allocating with `new`
|
// It is important to call `malloc` here instead of allocating with `new`
|
||||||
// since these structs are usually allocated and deallocated directly by
|
// since these structs are usually allocated and deallocated directly by
|
||||||
@ -110,7 +110,7 @@ void serialize(Archive& ar,
|
|||||||
locator.locations_size);
|
locator.locations_size);
|
||||||
ar& make_array<struct drgn_location_description>(
|
ar& make_array<struct drgn_location_description>(
|
||||||
locator.frame_base_locations, locator.frame_base_locations_size);
|
locator.frame_base_locations, locator.frame_base_locations_size);
|
||||||
ar& locator.qualified_type;
|
ar & locator.qualified_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(struct drgn_object_locator)
|
INSTANCIATE_SERIALIZE(struct drgn_object_locator)
|
||||||
@ -118,9 +118,9 @@ INSTANCIATE_SERIALIZE(struct drgn_object_locator)
|
|||||||
template <class Archive>
|
template <class Archive>
|
||||||
void serialize(Archive& ar, FuncDesc::Arg& arg, const unsigned int version) {
|
void serialize(Archive& ar, FuncDesc::Arg& arg, const unsigned int version) {
|
||||||
verify_version<FuncDesc::Arg>(version);
|
verify_version<FuncDesc::Arg>(version);
|
||||||
ar& arg.typeName;
|
ar & arg.typeName;
|
||||||
ar& arg.valid;
|
ar & arg.valid;
|
||||||
ar& arg.locator;
|
ar & arg.locator;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(FuncDesc::Arg)
|
INSTANCIATE_SERIALIZE(FuncDesc::Arg)
|
||||||
@ -130,8 +130,8 @@ void serialize(Archive& ar,
|
|||||||
FuncDesc::Retval& retval,
|
FuncDesc::Retval& retval,
|
||||||
const unsigned int version) {
|
const unsigned int version) {
|
||||||
verify_version<FuncDesc::Retval>(version);
|
verify_version<FuncDesc::Retval>(version);
|
||||||
ar& retval.typeName;
|
ar & retval.typeName;
|
||||||
ar& retval.valid;
|
ar & retval.valid;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(FuncDesc::Retval)
|
INSTANCIATE_SERIALIZE(FuncDesc::Retval)
|
||||||
@ -141,8 +141,8 @@ void serialize(Archive& ar,
|
|||||||
FuncDesc::Range& range,
|
FuncDesc::Range& range,
|
||||||
const unsigned int version) {
|
const unsigned int version) {
|
||||||
verify_version<FuncDesc::Range>(version);
|
verify_version<FuncDesc::Range>(version);
|
||||||
ar& range.start;
|
ar & range.start;
|
||||||
ar& range.end;
|
ar & range.end;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(FuncDesc::Range)
|
INSTANCIATE_SERIALIZE(FuncDesc::Range)
|
||||||
@ -150,11 +150,11 @@ INSTANCIATE_SERIALIZE(FuncDesc::Range)
|
|||||||
template <class Archive>
|
template <class Archive>
|
||||||
void serialize(Archive& ar, FuncDesc& fd, const unsigned int version) {
|
void serialize(Archive& ar, FuncDesc& fd, const unsigned int version) {
|
||||||
verify_version<FuncDesc>(version);
|
verify_version<FuncDesc>(version);
|
||||||
ar& fd.symName;
|
ar & fd.symName;
|
||||||
ar& fd.ranges;
|
ar & fd.ranges;
|
||||||
ar& fd.isMethod;
|
ar & fd.isMethod;
|
||||||
ar& fd.arguments;
|
ar & fd.arguments;
|
||||||
ar& fd.retval;
|
ar & fd.retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(FuncDesc)
|
INSTANCIATE_SERIALIZE(FuncDesc)
|
||||||
@ -162,9 +162,9 @@ INSTANCIATE_SERIALIZE(FuncDesc)
|
|||||||
template <class Archive>
|
template <class Archive>
|
||||||
void serialize(Archive& ar, GlobalDesc& gd, const unsigned int version) {
|
void serialize(Archive& ar, GlobalDesc& gd, const unsigned int version) {
|
||||||
verify_version<GlobalDesc>(version);
|
verify_version<GlobalDesc>(version);
|
||||||
ar& gd.symName;
|
ar & gd.symName;
|
||||||
ar& gd.typeName;
|
ar & gd.typeName;
|
||||||
ar& gd.baseAddr;
|
ar & gd.baseAddr;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(GlobalDesc)
|
INSTANCIATE_SERIALIZE(GlobalDesc)
|
||||||
@ -175,7 +175,7 @@ static void serialize_c_string(Archive& ar, char** string) {
|
|||||||
if (Archive::is_saving::value) {
|
if (Archive::is_saving::value) {
|
||||||
length = *string ? strlen(*string) : 0;
|
length = *string ? strlen(*string) : 0;
|
||||||
}
|
}
|
||||||
ar& length;
|
ar & length;
|
||||||
if (Archive::is_loading::value) {
|
if (Archive::is_loading::value) {
|
||||||
*string = length ? (char*)malloc(sizeof(char) * (length + 1)) : NULL;
|
*string = length ? (char*)malloc(sizeof(char) * (length + 1)) : NULL;
|
||||||
}
|
}
|
||||||
@ -218,10 +218,10 @@ void serialize(Archive& ar,
|
|||||||
// `.kind` MUST be serialized first, not just because it's declared first,
|
// `.kind` MUST be serialized first, not just because it's declared first,
|
||||||
// but because all of the `drgn_type_has_*` functions rely on the value of
|
// but because all of the `drgn_type_has_*` functions rely on the value of
|
||||||
// `.kind`
|
// `.kind`
|
||||||
ar& type._private.kind;
|
ar & type._private.kind;
|
||||||
ar& type._private.is_complete;
|
ar & type._private.is_complete;
|
||||||
ar& type._private.primitive;
|
ar & type._private.primitive;
|
||||||
ar& type._private.qualifiers;
|
ar & type._private.qualifiers;
|
||||||
// `.program` is NULL, per the initial `memset`
|
// `.program` is NULL, per the initial `memset`
|
||||||
|
|
||||||
if (Archive::is_loading::value) {
|
if (Archive::is_loading::value) {
|
||||||
@ -247,13 +247,13 @@ void serialize(Archive& ar,
|
|||||||
assert_in_same_union(size, num_enumerators);
|
assert_in_same_union(size, num_enumerators);
|
||||||
assert_in_same_union(size, is_variadic);
|
assert_in_same_union(size, is_variadic);
|
||||||
if (drgn_type_has_size(&type)) {
|
if (drgn_type_has_size(&type)) {
|
||||||
ar& type._private.size;
|
ar & type._private.size;
|
||||||
} else if (drgn_type_has_length(&type)) {
|
} else if (drgn_type_has_length(&type)) {
|
||||||
ar& type._private.length;
|
ar & type._private.length;
|
||||||
} else if (drgn_type_has_enumerators(&type)) {
|
} else if (drgn_type_has_enumerators(&type)) {
|
||||||
ar& type._private.num_enumerators;
|
ar & type._private.num_enumerators;
|
||||||
} else if (drgn_type_has_is_variadic(&type)) {
|
} else if (drgn_type_has_is_variadic(&type)) {
|
||||||
ar& type._private.is_variadic;
|
ar & type._private.is_variadic;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Third union: `is_signed`, `num_members`, `num_paramters`
|
// Third union: `is_signed`, `num_members`, `num_paramters`
|
||||||
@ -265,7 +265,7 @@ void serialize(Archive& ar,
|
|||||||
assert_in_same_union(little_endian, enumerators);
|
assert_in_same_union(little_endian, enumerators);
|
||||||
assert_in_same_union(little_endian, parameters);
|
assert_in_same_union(little_endian, parameters);
|
||||||
if (drgn_type_has_little_endian(&type)) {
|
if (drgn_type_has_little_endian(&type)) {
|
||||||
ar& type._private.little_endian;
|
ar & type._private.little_endian;
|
||||||
} else if (drgn_type_has_members(&type)) {
|
} else if (drgn_type_has_members(&type)) {
|
||||||
// Leave `members` set to NULL per the initial `memset`,
|
// Leave `members` set to NULL per the initial `memset`,
|
||||||
// see "AVOIDING OVERSERIALIZATION" comment above
|
// see "AVOIDING OVERSERIALIZATION" comment above
|
||||||
@ -282,7 +282,7 @@ void serialize(Archive& ar,
|
|||||||
// "AVOIDING OVERSERIALIZATION" comment above
|
// "AVOIDING OVERSERIALIZATION" comment above
|
||||||
|
|
||||||
uintptr_t die_addr = (uintptr_t)type._private.die_addr;
|
uintptr_t die_addr = (uintptr_t)type._private.die_addr;
|
||||||
ar& die_addr;
|
ar & die_addr;
|
||||||
type._private.die_addr = (void*)die_addr;
|
type._private.die_addr = (void*)die_addr;
|
||||||
// `.module` is NULL, per the initial `memset`
|
// `.module` is NULL, per the initial `memset`
|
||||||
if (Archive::is_saving::value) {
|
if (Archive::is_saving::value) {
|
||||||
@ -293,7 +293,7 @@ void serialize(Archive& ar,
|
|||||||
std::numeric_limits<decltype(type._private.oi_size)>::max();
|
std::numeric_limits<decltype(type._private.oi_size)>::max();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ar& type._private.oi_size;
|
ar & type._private.oi_size;
|
||||||
|
|
||||||
// It's important that `oi_name` is declared here and not inside the
|
// It's important that `oi_name` is declared here and not inside the
|
||||||
// if statement so that its data isn't freed when we call
|
// if statement so that its data isn't freed when we call
|
||||||
@ -306,7 +306,7 @@ void serialize(Archive& ar,
|
|||||||
serialize_c_string(ar, const_cast<char**>(&type._private.oi_name));
|
serialize_c_string(ar, const_cast<char**>(&type._private.oi_name));
|
||||||
|
|
||||||
if (drgn_type_kind(&type) == DRGN_TYPE_ARRAY) {
|
if (drgn_type_kind(&type) == DRGN_TYPE_ARRAY) {
|
||||||
ar& type._private.type;
|
ar & type._private.type;
|
||||||
}
|
}
|
||||||
#undef assert_in_same_union
|
#undef assert_in_same_union
|
||||||
}
|
}
|
||||||
@ -318,10 +318,10 @@ void serialize(Archive& ar,
|
|||||||
struct DrgnClassMemberInfo& m,
|
struct DrgnClassMemberInfo& m,
|
||||||
const unsigned int version) {
|
const unsigned int version) {
|
||||||
verify_version<struct DrgnClassMemberInfo>(version);
|
verify_version<struct DrgnClassMemberInfo>(version);
|
||||||
ar& m.type;
|
ar & m.type;
|
||||||
ar& m.member_name;
|
ar & m.member_name;
|
||||||
ar& m.bit_offset;
|
ar & m.bit_offset;
|
||||||
ar& m.bit_field_size;
|
ar & m.bit_field_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(DrgnClassMemberInfo)
|
INSTANCIATE_SERIALIZE(DrgnClassMemberInfo)
|
||||||
@ -331,8 +331,8 @@ void serialize(Archive& ar,
|
|||||||
struct drgn_qualified_type& type,
|
struct drgn_qualified_type& type,
|
||||||
const unsigned int version) {
|
const unsigned int version) {
|
||||||
verify_version<struct drgn_qualified_type>(version);
|
verify_version<struct drgn_qualified_type>(version);
|
||||||
ar& type.type;
|
ar & type.type;
|
||||||
ar& type.qualifiers;
|
ar & type.qualifiers;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(struct drgn_qualified_type)
|
INSTANCIATE_SERIALIZE(struct drgn_qualified_type)
|
||||||
@ -340,8 +340,8 @@ INSTANCIATE_SERIALIZE(struct drgn_qualified_type)
|
|||||||
template <class Archive>
|
template <class Archive>
|
||||||
void serialize(Archive& ar, RootInfo& rootInfo, const unsigned int version) {
|
void serialize(Archive& ar, RootInfo& rootInfo, const unsigned int version) {
|
||||||
verify_version<RootInfo>(version);
|
verify_version<RootInfo>(version);
|
||||||
ar& rootInfo.varName;
|
ar & rootInfo.varName;
|
||||||
ar& rootInfo.type;
|
ar & rootInfo.type;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(RootInfo)
|
INSTANCIATE_SERIALIZE(RootInfo)
|
||||||
@ -351,14 +351,14 @@ void serialize(Archive& ar,
|
|||||||
struct TypeHierarchy& th,
|
struct TypeHierarchy& th,
|
||||||
const unsigned int version) {
|
const unsigned int version) {
|
||||||
verify_version<TypeHierarchy>(version);
|
verify_version<TypeHierarchy>(version);
|
||||||
ar& th.classMembersMap;
|
ar & th.classMembersMap;
|
||||||
ar& th.containerTypeMap;
|
ar & th.containerTypeMap;
|
||||||
ar& th.typedefMap;
|
ar & th.typedefMap;
|
||||||
ar& th.sizeMap;
|
ar & th.sizeMap;
|
||||||
ar& th.knownDummyTypeList;
|
ar & th.knownDummyTypeList;
|
||||||
ar& th.pointerToTypeMap;
|
ar & th.pointerToTypeMap;
|
||||||
ar& th.thriftIssetStructTypes;
|
ar & th.thriftIssetStructTypes;
|
||||||
ar& th.descendantClasses;
|
ar & th.descendantClasses;
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANCIATE_SERIALIZE(struct TypeHierarchy)
|
INSTANCIATE_SERIALIZE(struct TypeHierarchy)
|
||||||
|
Loading…
Reference in New Issue
Block a user