Skip to content
9 changes: 9 additions & 0 deletions clang/bindings/python/clang/cindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -2362,6 +2362,14 @@ def get_bitfield_width(self) -> int:
"""
return conf.lib.clang_getFieldDeclBitWidth(self) # type: ignore [no-any-return]

@cursor_null_guard
def is_function_inlined(self) -> bool:
"""
Check if the function is inlined
"""
assert self.kind == TypeKind.FUNCTIONPROTO
return bool(conf.lib.clang_Cursor_isFunctionInlined(self)) # type: ignore [no-any-return]

@cursor_null_guard
def has_attrs(self) -> bool:
"""
Expand Down Expand Up @@ -4308,6 +4316,7 @@ def set_property(self, property, value):
("clang_Cursor_isAnonymous", [Cursor], bool),
("clang_Cursor_isAnonymousRecordDecl", [Cursor], bool),
("clang_Cursor_isBitField", [Cursor], bool),
("clang_Cursor_isFunctionInlined", [Cursor], c_uint),
("clang_Location_isInSystemHeader", [SourceLocation], bool),
("clang_PrintingPolicy_dispose", [PrintingPolicy]),
("clang_PrintingPolicy_getProperty", [PrintingPolicy, c_int], c_uint),
Expand Down