Skip to content

Commit 8231182

Browse files
authored
[libclang/python][NFC] Document how null cursors are handled (#140499)
Now that we looked at this aspect closely and fixed things, I think we can document this.
1 parent 0cac25b commit 8231182

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/bindings/python/clang/cindex.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,6 +1585,8 @@ class Cursor(Structure):
15851585
"""
15861586
The Cursor class represents a reference to an element within the AST. It
15871587
acts as a kind of iterator.
1588+
1589+
Null cursors are mapped to None.
15881590
"""
15891591

15901592
_fields_ = [("_kind_id", c_int), ("xdata", c_int), ("data", c_void_p * 3)]

0 commit comments

Comments
 (0)