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,10 +36,14 @@ using setter_t = void (DynamicSharedObject::*)(T);
template<>
void create<DynamicSharedObject>(py::module& m) {
//
// Dynamic Shared Object object
//
py::class_<DynamicSharedObject, DynamicEntry>(m, "DynamicSharedObject")
py::class_<DynamicSharedObject, DynamicEntry>(m, "DynamicSharedObject",
R"delim(
Class which represents a ``DT_SONAME`` entry in the dynamic table
This kind of entry is usually used no name the original library.
This entry is not present for executable.
)delim")
.def(py::init<const std::string &>(),
"Constructor from library name",
"library_name"_a)
@@ -59,12 +63,10 @@ void create<DynamicSharedObject>(py::module& m) {
})
.def("__str__",
[] (const DynamicSharedObject& dynamicSharedObject)
{
std::ostringstream stream;
stream << dynamicSharedObject;
std::string str = stream.str();
return str;
[] (const DynamicSharedObject& dynamicSharedObject) {
std::ostringstream stream;
stream << dynamicSharedObject;
return stream.str();
});
}