This commit cleans and modernizes the code base of LIEF.

Among the changes:

- It removes the ``and, or, not`` keywords
- It updates the Documentation
- It moves the internal structures in the ``details::`` namespace
This commit is contained in:
rthomas
2022-01-27 18:50:12 +01:00
committed by Romain Thomas
parent 540049d0d9
commit a615adbee4
625 changed files with 15701 additions and 15535 deletions
@@ -38,20 +38,27 @@ template<>
void create<SymbolVersionDefinition>(py::module& m) {
py::class_<SymbolVersionDefinition, LIEF::Object>(m, "SymbolVersionDefinition",
"Class which modelization of an entry defined in ``DT_VERDEF`` (or ``.gnu.version_d``)")
"Class which represents an entry defined in ``DT_VERDEF`` or ``.gnu.version_d``")
.def_property("version",
static_cast<getter_t<uint16_t>>(&SymbolVersionDefinition::version),
static_cast<setter_t<uint16_t>>(&SymbolVersionDefinition::version),
"Version revision. Should holds 1")
R"delim(
Version revision. Should be 1
This field should always have the value ``1``. It will be changed
if the versioning implementation has to be changed in an incompatible way.
)delim")
.def_property("flags",
static_cast<getter_t<uint16_t>>(&SymbolVersionDefinition::flags),
static_cast<setter_t<uint16_t>>(&SymbolVersionDefinition::flags))
static_cast<setter_t<uint16_t>>(&SymbolVersionDefinition::flags),
"Version information")
.def_property("hash",
static_cast<getter_t<uint32_t>>(&SymbolVersionDefinition::hash),
static_cast<setter_t<uint32_t>>(&SymbolVersionDefinition::hash))
static_cast<setter_t<uint32_t>>(&SymbolVersionDefinition::hash),
"Hash value of the symbol's name (using ELF hash function)")
.def_property_readonly("auxiliary_symbols",
static_cast<no_const_getter<it_symbols_version_aux>>(&SymbolVersionDefinition::symbols_aux),