================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits