[Lldb-commits] [lldb] r148144 - /lldb/trunk/source/Expression/ClangASTSource.cpp
Sean Callanan
scallanan at apple.com
Fri Jan 13 14:05:56 PST 2012
Author: spyffe
Date: Fri Jan 13 16:05:55 2012
New Revision: 148144
URL: http://llvm.org/viewvc/llvm-project?rev=148144&view=rev
Log:
Fixed some logging in the AST source and added
more information.
Modified:
lldb/trunk/source/Expression/ClangASTSource.cpp
Modified: lldb/trunk/source/Expression/ClangASTSource.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangASTSource.cpp?rev=148144&r1=148143&r2=148144&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangASTSource.cpp (original)
+++ lldb/trunk/source/Expression/ClangASTSource.cpp Fri Jan 13 16:05:55 2012
@@ -154,9 +154,10 @@
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 @@
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 @@
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
More information about the lldb-commits
mailing list