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
+6 -2
View File
@@ -34,7 +34,11 @@ using setter_t = void (ResourceNode::*)(T);
template<>
void create<ResourceNode>(py::module& m) {
py::class_<ResourceNode, LIEF::Object>(m, "ResourceNode")
py::class_<ResourceNode, LIEF::Object>(m, "ResourceNode",
R"delim(
Class which represents a Node in the resource tree.
It is extended by :class:`lief.PE.ResourceData` and :class:`lief.PE.ResourceNode`
)delim")
.def_property("id",
static_cast<getter_t<uint32_t>>(&ResourceNode::id),
@@ -59,7 +63,7 @@ void create<ResourceNode>(py::module& m) {
return safe_string_converter(LIEF::u16tou8(node.name()));
},
static_cast<void (ResourceNode::*)(const std::string&)>(&ResourceNode::name),
"Resource name")
"Resource's name")
.def_property_readonly("childs",
static_cast<it_childs (ResourceNode::*)(void)>(&ResourceNode::childs),