[clang] [clang][Sema] Move computing enum bits into a separate function (PR #126096)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 6 09:48:38 PST 2025
https://github.com/Sirraide commented:
This is just moving stuff around so that seems fine. Though, I wonder, could we just pass e.g. an `ArrayRef<Decl*>` to `computeEnumBits()`? The LLDB pr you linked seems to have an `SmallVector<EnumConstantDecl*>, so that should be possible (I think it does require a `reinterpret_cast` from a `const Decl**` to a `const EnumConstantDecl**`, but we already do that in other places in Clang iirc).
https://github.com/llvm/llvm-project/pull/126096
More information about the cfe-commits
mailing list