[clang] [libclang/python] Add isFunctionInlined support (PR #162882)
Thomas Applencourt via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 14 08:25:25 PDT 2025
================
@@ -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
----------------
TApplencourt wrote:
Not really. It will return `False` if not used in `FUNCTIONPROTO` (will not segfault :) )
I was following the `is_function_variadic` assert.
Can remove the `assert` if you prefers
https://github.com/llvm/llvm-project/pull/162882
More information about the cfe-commits
mailing list