Skip to content

Commit acd9965

Browse files
committed
Add missing library functions
1 parent f0dc3c5 commit acd9965

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/bindings/python/clang/cindex.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3952,6 +3952,7 @@ def set_property(self, property, value):
39523952
("clang_equalRanges", [SourceRange, SourceRange], bool),
39533953
("clang_equalTypes", [Type, Type], bool),
39543954
("clang_formatDiagnostic", [Diagnostic, c_uint], _CXString),
3955+
("clang_getAddressSpace", [Type], c_uint),
39553956
("clang_getArgType", [Type, c_uint], Type),
39563957
("clang_getArrayElementType", [Type], Type),
39573958
("clang_getArraySize", [Type], c_longlong),
@@ -3973,6 +3974,7 @@ def set_property(self, property, value):
39733974
("clang_getCursorExceptionSpecificationType", [Cursor], c_int),
39743975
("clang_getCursorExtent", [Cursor], SourceRange),
39753976
("clang_getCursorLexicalParent", [Cursor], Cursor),
3977+
("clang_getCursorLinkage", [Cursor], c_int),
39763978
("clang_getCursorLocation", [Cursor], SourceLocation),
39773979
("clang_getCursorPrettyPrinted", [Cursor, PrintingPolicy], _CXString),
39783980
("clang_getCursorPrintingPolicy", [Cursor], c_object_p),

clang/bindings/python/tests/cindex/test_lib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
class TestLib(unittest.TestCase):
1313
def test_functions_registered(self):
14-
1514
def get_function_spelling(node):
1615
# The call expressions we are interested in have their spelling in .attr, not .id
1716
if hasattr(node, "attr"):

0 commit comments

Comments
 (0)