================
@@ -4204,6 +4268,187 @@ def set_property(self, property, value):
 cursor_visit_callback = CFUNCTYPE(c_int, Cursor, Cursor, py_object)
 fields_visit_callback = CFUNCTYPE(c_int, Cursor, py_object)
 
+
+class CXTranslationUnitImpl(Structure):
+    pass  # opaque structure
+
+
+CXTranslationUnit = POINTER(CXTranslationUnitImpl)
----------------
DeinAlptraum wrote:

Are you sure these are necessary?
If we don't need to access the fields on Python side, it should be enough to 
inherit from `ClangObject` instead of `Structure` iirc

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

Reply via email to