Differential D75626 Diff 248234 lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | clang::QualType AppleObjCTypeEncodingParser::BuildAggregate( | ||||
} | } | ||||
if (in_union) | if (in_union) | ||||
return clang::QualType(); | return clang::QualType(); | ||||
if (is_templated) | if (is_templated) | ||||
return clang::QualType(); // This is where we bail out. Sorry! | return clang::QualType(); // This is where we bail out. Sorry! | ||||
CompilerType union_type(ast_ctx.CreateRecordType( | CompilerType union_type(ast_ctx.CreateRecordType( | ||||
nullptr, lldb::eAccessPublic, name, kind, lldb::eLanguageTypeC)); | nullptr, 0, lldb::eAccessPublic, name, kind, lldb::eLanguageTypeC)); | ||||
if (union_type) { | if (union_type) { | ||||
TypeSystemClang::StartTagDeclarationDefinition(union_type); | TypeSystemClang::StartTagDeclarationDefinition(union_type); | ||||
unsigned int count = 0; | unsigned int count = 0; | ||||
for (auto element : elements) { | for (auto element : elements) { | ||||
if (element.name.empty()) { | if (element.name.empty()) { | ||||
StreamString elem_name; | StreamString elem_name; | ||||
elem_name.Printf("__unnamed_%u", count); | elem_name.Printf("__unnamed_%u", count); | ||||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |