[clang] [libclang/python] Add isFunctionInlined support (PR #162882)

Thomas Applencourt via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 14 08:26:31 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
+        return bool(conf.lib.clang_Cursor_isFunctionInlined(self))  # type: ignore [no-any-return]
----------------
TApplencourt wrote:

Fixed in 9efe91b5421c

https://github.com/llvm/llvm-project/pull/162882


More information about the cfe-commits mailing list