@@ -203,8 +203,8 @@ void ClangASTSource::CompleteType(TagDecl *tag_decl) {
203
203
LLDB_LOG (log,
204
204
" CompleteTagDecl[{0}] on (ASTContext*){1} Completing "
205
205
" (TagDecl*){2} named {3}" ,
206
- current_id, static_cast < void *>(m_ast_context) ,
207
- static_cast < void *>(tag_decl), tag_decl->getName ());
206
+ current_id, m_clang_ast_context-> getDisplayName (), tag_decl ,
207
+ tag_decl->getName ());
208
208
209
209
LLDB_LOG (log, " CTD[%u] Before:\n {0}" , current_id,
210
210
ClangUtil::DumpDecl (tag_decl));
@@ -336,9 +336,10 @@ void ClangASTSource::CompleteType(clang::ObjCInterfaceDecl *interface_decl) {
336
336
Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
337
337
338
338
LLDB_LOG (log,
339
- " [CompleteObjCInterfaceDecl] on (ASTContext*){0} Completing "
340
- " an ObjCInterfaceDecl named {1}" ,
341
- m_ast_context, interface_decl->getName ());
339
+ " [CompleteObjCInterfaceDecl] on (ASTContext*){0} '{1}' "
340
+ " Completing an ObjCInterfaceDecl named {1}" ,
341
+ m_ast_context, m_clang_ast_context->getDisplayName (),
342
+ interface_decl->getName ());
342
343
LLDB_LOG (log, " [COID] Before:\n {0}" ,
343
344
ClangUtil::DumpDecl (interface_decl));
344
345
@@ -441,35 +442,36 @@ void ClangASTSource::FindExternalLexicalDecls(
441
442
if (log) {
442
443
if (const NamedDecl *context_named_decl = dyn_cast<NamedDecl>(context_decl))
443
444
LLDB_LOG (log,
444
- " FindExternalLexicalDecls[{0}] on (ASTContext*){1} in '{2}' "
445
- " (%sDecl*){3 }" ,
446
- current_id, static_cast < void *>(m_ast_context ),
445
+ " FindExternalLexicalDecls[{0}] on (ASTContext*){1} '{2}' in "
446
+ " '{3}' (%sDecl*){4 }" ,
447
+ current_id, m_ast_context, m_clang_ast_context-> getDisplayName ( ),
447
448
context_named_decl->getNameAsString ().c_str (),
448
449
context_decl->getDeclKindName (),
449
450
static_cast <const void *>(context_decl));
450
451
else if (context_decl)
451
- LLDB_LOG (
452
- log,
453
- " FindExternalLexicalDecls[{0}] on (ASTContext*){1} in ({2 }Decl*){3 }" ,
454
- current_id, static_cast < void *>(m_ast_context ),
455
- context_decl->getDeclKindName (),
456
- static_cast <const void *>(context_decl));
452
+ LLDB_LOG (log,
453
+ " FindExternalLexicalDecls[{0}] on (ASTContext*){1} '{2}' in "
454
+ " ({3 }Decl*){4 }" ,
455
+ current_id, m_ast_context, m_clang_ast_context-> getDisplayName ( ),
456
+ context_decl->getDeclKindName (),
457
+ static_cast <const void *>(context_decl));
457
458
else
458
- LLDB_LOG (
459
- log,
460
- " FindExternalLexicalDecls[{0}] on (ASTContext*){1} in a NULL context" ,
461
- current_id, static_cast <const void *>(m_ast_context));
459
+ LLDB_LOG (log,
460
+ " FindExternalLexicalDecls[{0}] on (ASTContext*){1} '{2}' in a "
461
+ " NULL context" ,
462
+ current_id, m_ast_context,
463
+ m_clang_ast_context->getDisplayName ());
462
464
}
463
465
464
466
ClangASTImporter::DeclOrigin original = m_ast_importer_sp->GetDeclOrigin (context_decl);
465
467
466
468
if (!original.Valid ())
467
469
return ;
468
470
469
- LLDB_LOG (
470
- log, " FELD[{0}] Original decl (ASTContext*){1:x} (Decl*){2:x}: \n {3} " ,
471
- current_id, static_cast <void *>(original.ctx ),
472
- static_cast < void *>(original. decl ), ClangUtil::DumpDecl (original.decl ));
471
+ LLDB_LOG (log, " FELD[{0}] Original decl {1} (Decl*){2:x}: \n {3} " , current_id,
472
+ static_cast < void *>(original. ctx ) ,
473
+ static_cast <void *>(original.decl ),
474
+ ClangUtil::DumpDecl (original.decl ));
473
475
474
476
if (ObjCInterfaceDecl *original_iface_decl =
475
477
dyn_cast<ObjCInterfaceDecl>(original.decl )) {
@@ -563,20 +565,22 @@ void ClangASTSource::FindExternalVisibleDecls(NameSearchContext &context) {
563
565
if (!context.m_decl_context )
564
566
LLDB_LOG (log,
565
567
" ClangASTSource::FindExternalVisibleDecls[{0}] on "
566
- " (ASTContext*){1} for '{2}' in a NULL DeclContext" ,
567
- current_id, m_ast_context, name);
568
+ " (ASTContext*){1} '{2}' for '{3}' in a NULL DeclContext" ,
569
+ current_id, m_ast_context, m_clang_ast_context->getDisplayName (),
570
+ name);
568
571
else if (const NamedDecl *context_named_decl =
569
572
dyn_cast<NamedDecl>(context.m_decl_context ))
570
573
LLDB_LOG (log,
571
574
" ClangASTSource::FindExternalVisibleDecls[{0}] on "
572
- " (ASTContext*){1} for '{2}' in '{3}'" ,
573
- current_id, m_ast_context, name, context_named_decl->getName ());
575
+ " (ASTContext*){1} '{2}' for '{3}' in '{4}'" ,
576
+ current_id, m_ast_context, m_clang_ast_context->getDisplayName (),
577
+ name, context_named_decl->getName ());
574
578
else
575
579
LLDB_LOG (log,
576
580
" ClangASTSource::FindExternalVisibleDecls[{0}] on "
577
- " (ASTContext*){1} for '{2 }' in a '{3 }'" ,
578
- current_id, m_ast_context, name ,
579
- context.m_decl_context ->getDeclKindName ());
581
+ " (ASTContext*){1} '{2}' for '{3 }' in a '{4 }'" ,
582
+ current_id, m_ast_context, m_clang_ast_context-> getDisplayName () ,
583
+ name, context.m_decl_context ->getDeclKindName ());
580
584
}
581
585
582
586
context.m_namespace_map = std::make_shared<ClangASTImporter::NamespaceMap>();
@@ -1042,9 +1046,10 @@ void ClangASTSource::FindObjCMethodDecls(NameSearchContext &context) {
1042
1046
ConstString selector_name (ss.GetString ());
1043
1047
1044
1048
LLDB_LOG (log,
1045
- " ClangASTSource::FindObjCMethodDecls[{0}] on (ASTContext*){1} "
1046
- " for selector [{2} {3}]" ,
1047
- current_id, m_ast_context, interface_decl->getName (), selector_name);
1049
+ " ClangASTSource::FindObjCMethodDecls[{0}] on (ASTContext*){1} '{2}' "
1050
+ " for selector [{3} {4}]" ,
1051
+ current_id, m_ast_context, m_clang_ast_context->getDisplayName (),
1052
+ interface_decl->getName (), selector_name);
1048
1053
SymbolContextList sc_list;
1049
1054
1050
1055
const bool include_symbols = false ;
@@ -1337,9 +1342,9 @@ void ClangASTSource::FindObjCPropertyAndIvarDecls(NameSearchContext &context) {
1337
1342
1338
1343
LLDB_LOG (log,
1339
1344
" ClangASTSource::FindObjCPropertyAndIvarDecls[{0}] on "
1340
- " (ASTContext*){1} for '{2 }.{3 }'" ,
1341
- current_id, m_ast_context, parser_iface_decl-> getName (),
1342
- context.m_decl_name .getAsString ());
1345
+ " (ASTContext*){1} '{2}' for '{3 }.{4 }'" ,
1346
+ current_id, m_ast_context, m_clang_ast_context-> getDisplayName (),
1347
+ parser_iface_decl-> getName (), context.m_decl_name .getAsString ());
1343
1348
1344
1349
if (FindObjCPropertyAndIvarDeclsWithOrigin (
1345
1350
current_id, context, *this , origin_iface_decl))
@@ -1553,9 +1558,10 @@ bool ClangASTSource::layoutRecordType(const RecordDecl *record, uint64_t &size,
1553
1558
Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
1554
1559
1555
1560
LLDB_LOG (log,
1556
- " LayoutRecordType[{0}] on (ASTContext*){1} for (RecordDecl*){2} "
1557
- " [name = '{3}']" ,
1558
- current_id, m_ast_context, record, record->getName ());
1561
+ " LayoutRecordType[{0}] on (ASTContext*){1} '{2}' for (RecordDecl*)"
1562
+ " {3} [name = '{4}']" ,
1563
+ current_id, m_ast_context, m_clang_ast_context->getDisplayName (),
1564
+ record, record->getName ());
1559
1565
1560
1566
DeclFromParser<const RecordDecl> parser_record (record);
1561
1567
DeclFromUser<const RecordDecl> origin_record (
@@ -1676,15 +1682,16 @@ void ClangASTSource::CompleteNamespaceMap(
1676
1682
if (log) {
1677
1683
if (parent_map && parent_map->size ())
1678
1684
LLDB_LOG (log,
1679
- " CompleteNamespaceMap[{0}] on (ASTContext*){1} Searching for "
1680
- " namespace {2 } in namespace {3 }" ,
1681
- current_id, m_ast_context, name ,
1682
- parent_map->begin ()->second .GetName ());
1685
+ " CompleteNamespaceMap[{0}] on (ASTContext*){1} '{2}' Searching "
1686
+ " for namespace {3 } in namespace {4 }" ,
1687
+ current_id, m_ast_context, m_clang_ast_context-> getDisplayName () ,
1688
+ name, parent_map->begin ()->second .GetName ());
1683
1689
else
1684
1690
LLDB_LOG (log,
1685
- " CompleteNamespaceMap[{0}] on (ASTContext*){1} Searching for "
1686
- " namespace {2}" ,
1687
- current_id, m_ast_context, name);
1691
+ " CompleteNamespaceMap[{0}] on (ASTContext*){1} '{2}' Searching "
1692
+ " for namespace {3}" ,
1693
+ current_id, m_ast_context, m_clang_ast_context->getDisplayName (),
1694
+ name);
1688
1695
}
1689
1696
1690
1697
if (parent_map) {
0 commit comments