[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 10 03:34:10 PST 2025
================
@@ -2367,11 +2370,27 @@ size_t DWARFASTParserClang::ParseChildEnumerators(
}
if (name && name[0] && got_value) {
- m_ast.AddEnumerationValueToEnumerationType(
+ auto ECD = m_ast.AddEnumerationValueToEnumerationType(
clang_type, decl, name, enum_value, enumerator_byte_size * 8);
+ EnumConstants.emplace_back(static_cast<clang::Decl *>(ECD));
++enumerators_added;
}
}
+
+ clang::EnumDecl *enum_decl =
----------------
Michael137 wrote:
Please move this back into `TypeSystemClang::CompleteTagDeclarationDefinition` so we don't need to make `setNumNegativeBits`/`setNumPositiveBits` public. And instead just pass the values to `completeDefinition`.
https://github.com/llvm/llvm-project/pull/115005
More information about the lldb-commits
mailing list