[clang] [libclang/python] Refactor enum usage (PR #95608)

Jannick Kremer via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 14 14:33:29 PDT 2024


https://github.com/DeinAlptraum commented:

There is also `TokenKind`: this one does not currently inherit from `BaseEnumeration` and is defined somewhat differently, having all its variants and their IDs as a dictionary in `enumerations.py`. This seems quite arbitrary to me, is there any reason it is done this way? Otherwise I would also move this to `cindex.py` as another subclass of `BaseEnumeration`

https://github.com/llvm/llvm-project/pull/95608


More information about the cfe-commits mailing list