mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +02:00
when creating the python bindings for Detector class, it should ignore the assignment operators (#1107)
This commit is contained in:
parent
d1e5b0bc42
commit
ce8911de10
@ -123,6 +123,9 @@ def visit(node):
|
|||||||
if node.kind == cindex.CursorKind.CLASS_DECL:
|
if node.kind == cindex.CursorKind.CLASS_DECL:
|
||||||
if node.displayname == "Detector":
|
if node.displayname == "Detector":
|
||||||
for child in node.get_children():
|
for child in node.get_children():
|
||||||
|
# Skip assignment operators
|
||||||
|
if child.kind == cindex.CursorKind.CXX_METHOD and child.spelling == "operator=":
|
||||||
|
continue
|
||||||
if (
|
if (
|
||||||
child.kind == cindex.CursorKind.CXX_METHOD
|
child.kind == cindex.CursorKind.CXX_METHOD
|
||||||
and child.access_specifier == cindex.AccessSpecifier.PUBLIC
|
and child.access_specifier == cindex.AccessSpecifier.PUBLIC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user