================ @@ -75,20 +75,18 @@ bool lldb_private::contextMatches(llvm::ArrayRef<CompilerContext> context_chain, static CompilerContextKind ConvertTypeClass(lldb::TypeClass type_class) { if (type_class == eTypeClassAny) return CompilerContextKind::AnyType; - uint16_t result = 0; - if (type_class & lldb::eTypeClassClass) - result |= (uint16_t)CompilerContextKind::Class; - if (type_class & lldb::eTypeClassStruct) - result |= (uint16_t)CompilerContextKind::Struct; ---------------- labath wrote:
> Hmm it might actually be useful to see both in the output I would've thought? Maybe, I don't really have an intuitive expectation here, but I like how this forces a consistent behavior. (There are other ways to ensure a consistent struct/class handling, but they would require more code.) https://github.com/llvm/llvm-project/pull/96145 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits