imkiva wrote: I added a test according to the existing `enum-structs` tests in LLDB. Do we need another unittest version for this? Maybe we can check the generated `CXXRecordDecl` to ensure it does not introduce cycles? https://github.com/llvm/llvm-project/pull/165840