Author: Jannick Kremer
Date: 2025-09-16T09:17:35+02:00
New Revision: 63dc07f7d5b3da816afcf9c234e117c2780e71ed

URL: 
https://github.com/llvm/llvm-project/commit/63dc07f7d5b3da816afcf9c234e117c2780e71ed
DIFF: 
https://github.com/llvm/llvm-project/commit/63dc07f7d5b3da816afcf9c234e117c2780e71ed.diff

LOG: [libclang/python] Fix numResults field type of CCRStructure (#158598)

Fix the type of the `numResults` field of `CCRStructure`, as pointed out
here:
https://github.com/llvm/llvm-project/pull/140539#discussion_r2317808734

Added: 
    

Modified: 
    clang/bindings/python/clang/cindex.py

Removed: 
    


################################################################################
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


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to