@@ -2362,6 +2362,13 @@ def get_bitfield_width(self) -> int:
23622362 """
23632363 return conf .lib .clang_getFieldDeclBitWidth (self ) # type: ignore [no-any-return]
23642364
2365+ def is_function_inlined (self ) -> bool :
2366+ """
2367+ Check if the function is inlined
2368+ """
2369+ assert self .kind == TypeKind .FUNCTIONPROTO
2370+ return bool (conf .lib .clang_Cursor_isFunctionInlined (self )) # type: ignore [no-any-return]
2371+
23652372 @cursor_null_guard
23662373 def has_attrs (self ) -> bool :
23672374 """
@@ -4308,6 +4315,7 @@ def set_property(self, property, value):
43084315 ("clang_Cursor_isAnonymous" , [Cursor ], bool ),
43094316 ("clang_Cursor_isAnonymousRecordDecl" , [Cursor ], bool ),
43104317 ("clang_Cursor_isBitField" , [Cursor ], bool ),
4318+ ("clang_Cursor_isFunctionInlined" , [Cursor ], c_uint ),
43114319 ("clang_Location_isInSystemHeader" , [SourceLocation ], bool ),
43124320 ("clang_PrintingPolicy_dispose" , [PrintingPolicy ]),
43134321 ("clang_PrintingPolicy_getProperty" , [PrintingPolicy , c_int ], c_uint ),
0 commit comments