[clang] [libclang/python][NFC] Refactor wildcard import of `ctypes` (PR #140191)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 15 22:14:10 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Vlad Serebrennikov (Endilll)
<details>
<summary>Changes</summary>
The list is not that long.
---
Full diff: https://github.com/llvm/llvm-project/pull/140191.diff
1 Files Affected:
- (modified) clang/bindings/python/clang/cindex.py (+18-1)
``````````diff
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index 4ff7f318416b7..1bbe006fcb1b9 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -62,7 +62,24 @@
#
# o implement additional SourceLocation, SourceRange, and File methods.
-from ctypes import *
+from ctypes import (
+ Array,
+ CDLL,
+ CFUNCTYPE,
+ POINTER,
+ Structure,
+ byref,
+ c_char_p,
+ c_int,
+ c_longlong,
+ c_uint,
+ c_ulong,
+ c_ulonglong,
+ c_void_p,
+ cast,
+ cdll,
+ py_object,
+)
import os
import sys
``````````
</details>
https://github.com/llvm/llvm-project/pull/140191
More information about the cfe-commits
mailing list