@@ -277,7 +277,8 @@ static void PrepareContextToReceiveMembers(TypeSystemClang &ast,
277
277
278
278
// We have already completed the type, or we have found its definition and are
279
279
// ready to complete it later (cf. ParseStructureLikeDIE).
280
- if (tag_decl_ctx->getDefinition () != nullptr || tag_decl_ctx->isBeingDefined ())
280
+ if (tag_decl_ctx->getDefinition () != nullptr ||
281
+ tag_decl_ctx->isBeingDefined ())
281
282
return ;
282
283
283
284
// We reach this point of the tag was present in the debug info as a
@@ -1127,9 +1128,8 @@ std::pair<bool, TypeSP> DWARFASTParserClang::ParseCXXMethod(
1127
1128
// Neither GCC 4.2 nor clang++ currently set a valid
1128
1129
// accessibility in the DWARF for C++ methods...
1129
1130
// Default to public for now...
1130
- const auto accessibility = attrs.accessibility == eAccessNone
1131
- ? eAccessPublic
1132
- : attrs.accessibility ;
1131
+ const auto accessibility =
1132
+ attrs.accessibility == eAccessNone ? eAccessPublic : attrs.accessibility ;
1133
1133
1134
1134
clang::CXXMethodDecl *cxx_method_decl = m_ast.AddMethodToCXXRecordType (
1135
1135
class_opaque_type.GetOpaqueQualType (), attrs.name .GetCString (),
@@ -1889,8 +1889,8 @@ DWARFASTParserClang::ParseStructureLikeDIE(const SymbolContext &sc,
1889
1889
clang_type_was_created = true ;
1890
1890
clang_type = m_ast.CreateRecordType (
1891
1891
decl_ctx, GetOwningClangModule (die), attrs.accessibility ,
1892
- attrs.name .GetCString (), tag_decl_kind, attrs.class_language ,
1893
- &metadata, attrs.exports_symbols );
1892
+ attrs.name .GetCString (), tag_decl_kind, attrs.class_language , &metadata,
1893
+ attrs.exports_symbols );
1894
1894
RegisterDIE (die.GetDIE (), clang_type);
1895
1895
if (!should_directly_complete)
1896
1896
if (auto *source = llvm::dyn_cast_or_null<ImporterBackedASTSource>(
@@ -1955,15 +1955,15 @@ DWARFASTParserClang::ParseStructureLikeDIE(const SymbolContext &sc,
1955
1955
} else if (clang_type_was_created && !should_directly_complete) {
1956
1956
if (attrs.class_language != eLanguageTypeObjC &&
1957
1957
attrs.class_language != eLanguageTypeObjC_plus_plus)
1958
- // Leave this as a forward declaration until we need to know the
1959
- // details of the type. lldb_private::Type will automatically call
1960
- // the SymbolFile virtual function
1961
- // "SymbolFileDWARF::CompleteType(Type *)" When the definition
1962
- // needs to be defined.
1963
- assert (!dwarf->GetForwardDeclCompilerTypeToDIE ().count (
1964
- ClangUtil::RemoveFastQualifiers (clang_type)
1965
- .GetOpaqueQualType ()) &&
1966
- " Type already in the forward declaration map!" );
1958
+ // Leave this as a forward declaration until we need to know the
1959
+ // details of the type. lldb_private::Type will automatically call
1960
+ // the SymbolFile virtual function
1961
+ // "SymbolFileDWARF::CompleteType(Type *)" When the definition
1962
+ // needs to be defined.
1963
+ assert (!dwarf->GetForwardDeclCompilerTypeToDIE ().count (
1964
+ ClangUtil::RemoveFastQualifiers (clang_type)
1965
+ .GetOpaqueQualType ()) &&
1966
+ " Type already in the forward declaration map!" );
1967
1967
// Can't assume m_ast.GetSymbolFile() is actually a
1968
1968
// SymbolFileDWARF, it can be a SymbolFileDWARFDebugMap for Apple
1969
1969
// binaries.
@@ -2243,15 +2243,13 @@ bool DWARFASTParserClang::CompleteRecordType(const DWARFDIE &die,
2243
2243
// declarations. If we don't do this, clang will crash with an
2244
2244
// assertion in the call to clang_type.TransferBaseClasses()
2245
2245
for (const auto &base_class : bases) {
2246
- clang::TypeSourceInfo *type_source_info =
2247
- base_class->getTypeSourceInfo ();
2246
+ clang::TypeSourceInfo *type_source_info = base_class->getTypeSourceInfo ();
2248
2247
if (type_source_info)
2249
2248
TypeSystemClang::RequireCompleteType (
2250
2249
m_ast.GetType (type_source_info->getType ()));
2251
2250
}
2252
2251
2253
- m_ast.TransferBaseClasses (clang_type.GetOpaqueQualType (),
2254
- std::move (bases));
2252
+ m_ast.TransferBaseClasses (clang_type.GetOpaqueQualType (), std::move (bases));
2255
2253
}
2256
2254
2257
2255
adjustArgPassing (m_ast, attrs, clang_type);
0 commit comments