================
@@ -152,6 +152,41 @@ def b(x: str | bytes) -> bytes:
 ### Exception Classes ###
 
 
+class CXError(Exception):
----------------
TsXor wrote:

I looked at C header and found that `clang_parseTranslationUnit` and 
`clang_createTranslationUnit` actually swallows error code. To be unified, we 
should use `clang_parseTranslationUnit2` and `clang_createTranslationUnit2` 
which outputs value with pointers and return error code.

https://github.com/llvm/llvm-project/pull/102410
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to