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
@@ -35,13 +35,15 @@ using setter_t = void (DynamicEntryLibrary::*)(T);
template<>
void create<DynamicEntryLibrary>(py::module& m) {
py::class_<DynamicEntryLibrary, DynamicEntry>(m, "DynamicEntryLibrary",
R"delim(
Class which represents a ``DT_NEEDED`` entry in the dynamic table.
This kind of entry is usually used to create library dependency.
)delim")
//
// Dynamic Entry Library object
//
py::class_<DynamicEntryLibrary, DynamicEntry>(m, "DynamicEntryLibrary")
.def(py::init<const std::string &>(),
"Constructor from library name",
"Constructor from a library name",
"library_name"_a)
.def_property("name",
@@ -49,7 +51,7 @@ void create<DynamicEntryLibrary>(py::module& m) {
return safe_string_converter(obj.name());
},
static_cast<setter_t<const std::string&>>(&DynamicEntryLibrary::name),
"Return library's name")
"Library associated with this entry (e.g. ``libc.so.6``)")
.def("__eq__", &DynamicEntryLibrary::operator==)
.def("__ne__", &DynamicEntryLibrary::operator!=)