Add a method for getting the enumeration underlying type.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/test/API/python_api/type/TestTypeList.py | ||
---|---|---|
156 | Afaik this is implementation defined, so maybe this we shouldn't test this. |
lldb/source/API/SBType.cpp | ||
---|---|---|
348 | You also need to register the new method. You can add the instrumentation automatically with the lldb-instr tool if you remove this line (and the LLDB_RECORD_RESULT or the return value will get wrapped again). | |
lldb/test/API/python_api/type/TestTypeList.py | ||
156 | Yeah, I would either remove it or add a comment saying that it's implementation defined in case someone (downstream) runs into this. |
Remove the test case for unscoped enum, because it's implementation defined and can break any moment.
Thanks for a quick review! Can you please land these changes for me since I don't have commit access.
You also need to register the new method. You can add the instrumentation automatically with the lldb-instr tool if you remove this line (and the LLDB_RECORD_RESULT or the return value will get wrapped again).