Fixed some logging in the AST source and added

more information.

llvm-svn: 148144
This commit is contained in:
Sean Callanan 2012-01-13 22:05:55 +00:00
parent f35c84032d
commit a6e61a7820
1 changed files with 5 additions and 4 deletions

View File

@ -154,9 +154,10 @@ ClangASTSource::CompleteType (TagDecl *tag_decl)
if (log)
{
log->Printf(" CompleteTagDecl[%u] on (ASTContext*)%p Completing a TagDecl named %s",
invocation_id,
log->Printf(" CompleteTagDecl[%u] on (ASTContext*)%p Completing (TagDecl*)%p named %s",
current_id,
m_ast_context,
tag_decl,
tag_decl->getName().str().c_str());
log->Printf(" CTD[%u] Before:", current_id);
@ -349,7 +350,7 @@ ClangASTSource::FindExternalLexicalDecls (const DeclContext *decl_context,
if (log)
{
log->Printf(" FELD[%u] Original decl:", current_id);
log->Printf(" FELD[%u] Original decl (Decl*)%p:", current_id, original_decl);
ASTDumper(original_decl).ToLog(log, " ");
}
@ -407,7 +408,7 @@ ClangASTSource::FindExternalVisibleDecls (NameSearchContext &context)
if (log)
{
if (!context.m_decl_context)
log->Printf("ClangASTSource::FindExternalVisibleDecls[%u] on (ASTContext*)%p for '%s' in a NULL DeclContext", current_id, m_ast_context, name.GetCString());
log->Printf("ClangASTSource::FindExternalVisibleDecls[%u] on (ASTContext*)%p for '%s' in a NULL DeclContext", current_id, m_ast_context, name.GetCString());
else if (const NamedDecl *context_named_decl = dyn_cast<NamedDecl>(context.m_decl_context))
log->Printf("ClangASTSource::FindExternalVisibleDecls[%u] on (ASTContext*)%p for '%s' in '%s'", current_id, m_ast_context, name.GetCString(), context_named_decl->getNameAsString().c_str());
else