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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 21 23:50:36 PDT 2025


================
@@ -4308,6 +4315,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], bool),
----------------
Endilll wrote:

```suggestion
    ("clang_Cursor_isFunctionInlined", [Cursor], c_uint),
```
Answering the question from the PR description, `c_uint` reflects C function signature. I took a look at ctypes implementation, but I'm still not sure how `bool` is handled. If it's https://github.com/python/cpython/blob/b3a38438d83245e52dff80f348c7fde539333cea/Modules/_ctypes/cfield.c#L713, then I'm not particularly happy about `unsigned` read as wider `long long`.

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


More information about the cfe-commits mailing list