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
@@ -36,19 +36,24 @@ using setter_t = void (RelocationObject::*)(T);
template<>
void create<RelocationObject>(py::module& m) {
py::class_<RelocationObject, Relocation>(m, "RelocationObject")
py::class_<RelocationObject, Relocation>(m, "RelocationObject",
R"delim(
Class that represents a relocation presents in the MachO object
file (``.o``). Usually, this kind of relocation is found in the :class:`lief.MachO.Section`.
)delim")
.def_property("value",
static_cast<getter_t<int32_t>>(&RelocationObject::value),
static_cast<setter_t<int32_t>>(&RelocationObject::value),
"For **scattered** relocations, the address of the relocatable expression "
"for the item in the file that needs to be updated if the address is changed.\n\n"
R"delim(
For **scattered** relocations, the address of the relocatable expression
for the item in the file that needs to be updated if the address is changed.
"For relocatable expressions with the difference of two section addresses, "
"the address from which to subtract (in mathematical terms, the minuend) "
"is contained in the first relocation entry and the address to subtract (the subtrahend) "
"is contained in the second relocation entry.",
py::return_value_policy::reference_internal)
For relocatable expressions with the difference of two section addresses,
the address from which to subtract (in mathematical terms, the minuend)
is contained in the first relocation entry and the address to subtract (the subtrahend)
is contained in the second relocation entry.",
)delim")
.def_property_readonly("is_scattered",