[Lldb-commits] [PATCH] D35036: switch on enum should be exhaustive and warning-free

Tim Hammerquist via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 5 22:31:59 PDT 2017

penryu added a comment.

Thanks, sas.

I'll be honest, my prefer solution involves an inlined function (uint64_t -> TypeCodes) that eliminates the cast from the NSNumberSummaryProvider() method altogether. This way we can handle any dirty mappings from raw memory directory to the enum within the one function, and take advantage of the compiler's exhaustiveness check to ensure we're covering our bases.

I'll ponder a bit and consider reworking this patch in that form.


More information about the lldb-commits mailing list