[Lldb-commits] [PATCH] D131138: [lldb] Dynamically generate enum names in lldbutil

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 5 12:56:23 PDT 2022


kastiglione added a comment.

I wonder how much breakage there would be if you implemented a bunch of the dunder methods. Ex:

  class StopReason:
      def __int__(self) -> int: ...
      def __eq__(self, other: StopReason | int) -> bool: ...
      # ...

This would cover many cases, but not all. For example `5 == StopReason.whatever` would fail, even when `StopReason.whatever == 5` passes.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131138/new/

https://reviews.llvm.org/D131138



More information about the lldb-commits mailing list