[clang] #101784 part 2: fix error handling of TranslationUnit.reparse (PR #102410)
Jannick Kremer via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 11 01:59:10 PDT 2024
================
@@ -59,6 +59,9 @@ Clang Python Bindings Potentially Breaking Changes
- Calling a property on the `CompletionChunk` or `CompletionString` class
statically now leads to an error, instead of returning a `CachedProperty` object
that is used internally. Properties are only available on instances.
+- `TranslationUnitLoadError` now contains an error code in `error_code`
+ attribute. Also, `TranslationUnit.reparse` will throw `TranslationUnitLoadError`
+ when operation fails.
----------------
DeinAlptraum wrote:
Code highlighting should be in double ` (yes the example above that did it incorrectly... will fix)
https://github.com/llvm/llvm-project/pull/102410
More information about the cfe-commits
mailing list