Skip to content

Commit 1300ae3

Browse files
committed
Add isFunctionInlined support in Python Binding
1 parent 91b9d79 commit 1300ae3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/bindings/python/clang/cindex.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,6 +2369,14 @@ def is_function_inlined(self) -> bool:
23692369
assert self.kind == TypeKind.FUNCTIONPROTO
23702370
return bool(conf.lib.clang_Cursor_isFunctionInlined(self)) # type: ignore [no-any-return]
23712371

2372+
@cursor_null_guard
2373+
def is_function_inlined(self) -> bool:
2374+
"""
2375+
Check if the function is inlined
2376+
"""
2377+
assert self.kind == TypeKind.FUNCTIONPROTO
2378+
return bool(conf.lib.clang_Cursor_isFunctionInlined(self)) # type: ignore [no-any-return]
2379+
23722380
@cursor_null_guard
23732381
def has_attrs(self) -> bool:
23742382
"""

0 commit comments

Comments
 (0)