[clang] [libclang/python] Fix numResults field type of CCRStructure (PR #158598)
Jannick Kremer via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 15 03:36:14 PDT 2025
https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/158598
Fix the type of the `numResults` field of `CCRStructure`, as pointed out here: https://github.com/llvm/llvm-project/pull/140539#discussion_r2317808734
>From 32d419b80d18012e2f93ce939b40eda1e25a9aaa Mon Sep 17 00:00:00 2001
From: Jannick Kremer <jannick.kremer at mailbox.org>
Date: Mon, 15 Sep 2025 19:34:00 +0900
Subject: [PATCH] [libclang/python] Fix numResults field type of CCRStructure
---
clang/bindings/python/clang/cindex.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index 3398823836e62..071bd76f95906 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -3150,7 +3150,7 @@ def string(self) -> CompletionString:
class CCRStructure(Structure):
- _fields_ = [("results", POINTER(CodeCompletionResult)), ("numResults", c_int)]
+ _fields_ = [("results", POINTER(CodeCompletionResult)), ("numResults", c_uint)]
results: NoSliceSequence[CodeCompletionResult]
numResults: int
More information about the cfe-commits
mailing list