MCPcopy Create free account
hub / github.com/lief-project/LIEF / Type>

Method Type>

api/python/src/DWARF/editor/pyType.cpp:16–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace LIEF::dwarf::py {
15template<>
16void create<dw::editor::Type>(nb::module_& m) {
17 nb::class_<dw::editor::Type>(m, "Type",
18 R"doc(
19 This class is the base class for any types created when editing DWARF debug
20 info.
21
22 A type is owned by a :class:`lief.dwarf.editor.CompilationUnit` and should be
23 created from this class.
24 )doc"_doc
25 )
26 .def("pointer_to", &dw::editor::Type::pointer_to,
27 "Create a pointer type pointing to this type"_doc)
28 ;
29
30 create<LIEF::dwarf::editor::PointerType>(m);
31 create<LIEF::dwarf::editor::EnumType>(m);
32 create<LIEF::dwarf::editor::BaseType>(m);
33 create<LIEF::dwarf::editor::ArrayType>(m);
34 create<LIEF::dwarf::editor::FunctionType>(m);
35 create<LIEF::dwarf::editor::TypeDef>(m);
36 create<LIEF::dwarf::editor::StructType>(m);
37}
38
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected