[clang] [libclang/python] Add missing enum variants (PR #143264)
Jannick Kremer via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 15 07:27:45 PDT 2025
================
@@ -2482,6 +2529,13 @@ def spelling(self):
FLOAT128 = 30
HALF = 31
FLOAT16 = 32
+ SHORTACCUM = 33
+ ACCUM = 34
+ LONGACCUM = 35
+ USHORTACCUM = 36
+ UACCUM = 37
+ ULONGACCUM = 38
+ BFLOAT16 = 39
IBM128 = 40
----------------
DeinAlptraum wrote:
They're aliases and at least not used internally, I'm not sure I understand the point of those.
I just tested that enum aliases are not problem with the Python enum class.
Note however that we added a test for duplicate enums a while back here: https://github.com/llvm/llvm-project/blob/main/clang/bindings/python/tests/cindex/test_enums.py#L47
which expects no two enums to have the same number. Changing this would break that test (I guess we could compare by exact names instead, which doesn't work if someone changes the spelling when introducing a duplicate though)
https://github.com/llvm/llvm-project/pull/143264
More information about the cfe-commits
mailing list